1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 03:56:38 +02:00

Store flags for objects, also fixes bug #1333

This commit is contained in:
Adam
2011-09-25 15:34:56 -04:00
parent 1f3e96f4ad
commit af273e3da5
4 changed files with 10 additions and 0 deletions
+2
View File
@@ -115,6 +115,7 @@ SerializableBase::serialized_data NickAlias::serialize()
data["time_registered"].setType(Serialize::DT_INT) << this->time_registered;
data["last_seen"].setType(Serialize::DT_INT) << this->last_seen;
data["nc"] << this->nc->display;
data["flags"] << this->ToString();
if (this->hostinfo.HasVhost())
{
@@ -140,6 +141,7 @@ void NickAlias::unserialize(SerializableBase::serialized_data &data)
data["last_realhost"] >> na->last_realhost;
data["time_registered"] >> na->time_registered;
data["last_seen"] >> na->last_seen;
na->FromString(data["flags"].astr());
time_t vhost_time;
data["vhost_time"] >> vhost_time;