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