1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 04: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
@@ -54,6 +54,7 @@ SerializableBase::serialized_data NickCore::serialize()
data["email"] << this->email;
data["greet"] << this->greet;
data["language"] << this->language;
data["flags"] << this->ToString();
for (unsigned i = 0; i < this->access.size(); ++i)
data["access"] << this->access[i] << " ";
for (unsigned i = 0; i < this->cert.size(); ++i)
@@ -72,6 +73,7 @@ void NickCore::unserialize(serialized_data &data)
data["email"] >> nc->email;
data["greet"] >> nc->greet;
data["language"] >> nc->language;
nc->FromString(data["flags"].astr());
{
Anope::string buf;
data["access"] >> buf;