diff options
author | Adam <Adam@anope.org> | 2011-11-17 12:46:18 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-11-17 12:46:18 -0500 |
commit | 69dfc729e99f45f16cab37f81b9f09a659d99a24 (patch) | |
tree | 063d1bba66dcfaece259a91e370919fc1ae77d5c /src/bots.cpp | |
parent | 5281282a61601e9a6b77d129ed97e0509a0474cb (diff) |
Fixed storing mode locks
Diffstat (limited to 'src/bots.cpp')
-rw-r--r-- | src/bots.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bots.cpp b/src/bots.cpp index 864201f8c..afc4150d7 100644 --- a/src/bots.cpp +++ b/src/bots.cpp @@ -13,7 +13,7 @@ Anope::insensitive_map<BotInfo *> BotListByNick; Anope::map<BotInfo *> BotListByUID; -BotInfo::BotInfo(const Anope::string &nnick, const Anope::string &nuser, const Anope::string &nhost, const Anope::string &nreal, const Anope::string &bmodes) : User(nnick, nuser, nhost, ts6_uid_retrieve()), Flags<BotFlag, BI_END>(BotFlagString), Serializable("BotInfo"), botmodes(bmodes) +BotInfo::BotInfo(const Anope::string &nnick, const Anope::string &nuser, const Anope::string &nhost, const Anope::string &nreal, const Anope::string &bmodes) : User(nnick, nuser, nhost, ts6_uid_retrieve()), Flags<BotFlag, BI_END>(BotFlagString), botmodes(bmodes) { this->realname = nreal; this->server = Me; @@ -64,6 +64,11 @@ BotInfo::~BotInfo() BotListByUID.erase(this->uid); } +Anope::string BotInfo::serialize_name() const +{ + return "BotInfo"; +} + Serializable::serialized_data BotInfo::serialize() { serialized_data data; |