summaryrefslogtreecommitdiff
path: root/include/bots.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-12 03:13:56 -0400
committerAdam <Adam@anope.org>2011-08-12 03:13:56 -0400
commitfeee50e6959171123773417caab73ecad3af824b (patch)
treedb23ef04c56f0552e1876e9d9a75d1b3142bca3b /include/bots.h
parent54710a782b49f01a868987227e9b8748d28834cb (diff)
Allow bot usermodes to be configurable
Diffstat (limited to 'include/bots.h')
-rw-r--r--include/bots.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/bots.h b/include/bots.h
index 446287abf..477380c2c 100644
--- a/include/bots.h
+++ b/include/bots.h
@@ -40,6 +40,7 @@ class CoreExport BotInfo : public User, public Flags<BotFlag, BI_END>
time_t lastmsg; /* Last time we said something */
typedef Anope::insensitive_map<CommandInfo> command_map;
command_map commands; /* Commands, actual name to service name */
+ Anope::string botmodes; /* Modes the bot should have as configured in service:modes */
/** Create a new bot.
* @param nick The nickname to assign to the bot.
@@ -47,7 +48,7 @@ class CoreExport BotInfo : public User, public Flags<BotFlag, BI_END>
* @param host The hostname to give the bot.
* @param real The realname to give the bot.
*/
- BotInfo(const Anope::string &nick, const Anope::string &user = "", const Anope::string &host = "", const Anope::string &real = "");
+ BotInfo(const Anope::string &nick, const Anope::string &user = "", const Anope::string &host = "", const Anope::string &real = "", const Anope::string &modes = "");
/** Destroy a bot, clearing up appropriately.
*/