summaryrefslogtreecommitdiff
path: root/include/bots.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-02-24 14:53:34 -0500
committerAdam <Adam@anope.org>2012-02-24 14:53:34 -0500
commit2337b7717db05e0c8b53da2d61b5a66f58cc0297 (patch)
tree4e69f0cfcb64b477cf751403883ff8f4847d31f9 /include/bots.h
parent24811e59705f2d8995f900f82066084bf22f15ec (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.h5
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