diff options
author | Adam <Adam@anope.org> | 2012-04-23 05:08:26 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-04-23 05:08:26 -0400 |
commit | 573e49a7ead331219eb6f0d3ca9cf83e793a5c9c (patch) | |
tree | e145e04fa3d041cf92ce46da4ac790b63231059c /include/bots.h | |
parent | 63c639e108a00d7dbb0d7ac9891684fc83a3b207 (diff) |
Reworked live SQL support yet again
Diffstat (limited to 'include/bots.h')
-rw-r--r-- | include/bots.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/include/bots.h b/include/bots.h index 8d39cd0b3..749e4c92d 100644 --- a/include/bots.h +++ b/include/bots.h @@ -14,9 +14,11 @@ #include "commands.h" -extern CoreExport Anope::insensitive_map<BotInfo *> BotListByNick; -extern CoreExport Anope::map<BotInfo *> BotListByUID; typedef Anope::insensitive_map<BotInfo *> botinfo_map; +typedef Anope::map<BotInfo *> botinfouid_map; + +extern serialize_checker<botinfo_map> BotListByNick; +extern serialize_checker<botinfouid_map> BotListByUID; /** Flags settable on a bot */ @@ -60,9 +62,9 @@ class CoreExport BotInfo : public User, public Flags<BotFlag, BI_END>, public Se */ virtual ~BotInfo(); - Anope::string serialize_name() const; - serialized_data serialize(); - static void unserialize(serialized_data &); + const Anope::string serialize_name() const; + Serialize::Data serialize() const; + static Serializable* unserialize(Serializable *obj, Serialize::Data &); void GenerateUID(); @@ -90,7 +92,7 @@ class CoreExport BotInfo : public User, public Flags<BotFlag, BI_END>, public Se /** Get the number of channels this bot is assigned to */ - unsigned GetChannelCount(); + unsigned GetChannelCount() const; /** Join this bot to a channel * @param c The channel |