diff options
author | Adam <Adam@anope.org> | 2012-02-24 14:53:34 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-02-24 14:53:34 -0500 |
commit | 2337b7717db05e0c8b53da2d61b5a66f58cc0297 (patch) | |
tree | 4e69f0cfcb64b477cf751403883ff8f4847d31f9 /include/bots.h | |
parent | 24811e59705f2d8995f900f82066084bf22f15ec (diff) |
Fixed calculating bots channel count of assigned channels and fixed the order of saving memos (among other things)
Diffstat (limited to 'include/bots.h')
-rw-r--r-- | include/bots.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/bots.h b/include/bots.h index 243ae7556..8d39cd0b3 100644 --- a/include/bots.h +++ b/include/bots.h @@ -39,7 +39,6 @@ static const Anope::string BotFlagString[] = { "BEGIN", "CORE", "PRIVATE", "CONF class CoreExport BotInfo : public User, public Flags<BotFlag, BI_END>, public Serializable { public: - uint32_t chancount; time_t created; /* Birth date ;) */ time_t lastmsg; /* Last time we said something */ typedef Anope::insensitive_map<CommandInfo> command_map; @@ -89,6 +88,10 @@ class CoreExport BotInfo : public User, public Flags<BotFlag, BI_END>, public Se */ void UnAssign(User *u, ChannelInfo *ci); + /** Get the number of channels this bot is assigned to + */ + unsigned GetChannelCount(); + /** Join this bot to a channel * @param c The channel * @param status The status the bot should have on the channel |