From 2337b7717db05e0c8b53da2d61b5a66f58cc0297 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 24 Feb 2012 14:53:34 -0500 Subject: Fixed calculating bots channel count of assigned channels and fixed the order of saving memos (among other things) --- include/bots.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') 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, public Serializable { public: - uint32_t chancount; time_t created; /* Birth date ;) */ time_t lastmsg; /* Last time we said something */ typedef Anope::insensitive_map command_map; @@ -89,6 +88,10 @@ class CoreExport BotInfo : public User, public Flags, 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 -- cgit