summaryrefslogtreecommitdiff
path: root/include/bots.h
diff options
context:
space:
mode:
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