1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 20:16: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
@@ -74,6 +74,7 @@ SerializableBase::serialized_data BotInfo::serialize()
data["realname"] << this->realname;
data["created"] << this->created;
data["chancount"] << this->chancount;
data["flags"] << this->ToString();
return data;
}
@@ -85,6 +86,7 @@ void BotInfo::unserialize(SerializableBase::serialized_data &data)
bi = new BotInfo(data["nick"].astr(), data["user"].astr(), data["host"].astr(), data["realname"].astr());
data["created"] >> bi->created;
data["chancount"] >> bi->chancount;
bi->FromString(data["flags"].astr());
}
void BotInfo::GenerateUID()