diff options
author | Adam <Adam@anope.org> | 2011-09-25 15:34:56 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-09-25 15:34:56 -0400 |
commit | af273e3da537ff60edb5f97b8081b550bd56d57d (patch) | |
tree | 91056829ec786c49045a580a6a1e733f2a12d977 /src/nickcore.cpp | |
parent | 1f3e96f4adb14955f368edc0f1f9142471fbe9f1 (diff) |
Store flags for objects, also fixes bug #1333
Diffstat (limited to 'src/nickcore.cpp')
-rw-r--r-- | src/nickcore.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nickcore.cpp b/src/nickcore.cpp index 968e4d0e9..6c533fb61 100644 --- a/src/nickcore.cpp +++ b/src/nickcore.cpp @@ -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; |