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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user