summaryrefslogtreecommitdiff
path: root/include/bots.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-01-21 22:31:16 -0500
committerAdam <Adam@anope.org>2013-01-21 22:31:16 -0500
commitddaa001dafb5122e6e363e4acbbe6ce045b7b104 (patch)
tree0364a76606ac6e2881ebd663601ce260f7c1101e /include/bots.h
parent51c049e1a738e9124bab3961f35b830906517421 (diff)
Merge usefulness of Flags and Extensible classes into Extensible, made most flags we have juse strings instead of defines/enums
Diffstat (limited to 'include/bots.h')
-rw-r--r--include/bots.h20
1 files changed, 5 insertions, 15 deletions
diff --git a/include/bots.h b/include/bots.h
index afffc7689..3b42424bd 100644
--- a/include/bots.h
+++ b/include/bots.h
@@ -20,22 +20,8 @@ typedef Anope::map<BotInfo *> botinfo_map;
extern CoreExport Serialize::Checker<botinfo_map> BotListByNick, BotListByUID;
-/** Flags settable on a bot
- */
-enum BotFlag
-{
- BI_BEGIN,
-
- /* This bot can only be assigned by IRCops */
- BI_PRIVATE,
- /* This bot is defined in the config */
- BI_CONF,
-
- BI_END
-};
-
/* A service bot (NickServ, ChanServ, a BotServ bot, etc). */
-class CoreExport BotInfo : public User, public Flags<BotFlag>, public Serializable
+class CoreExport BotInfo : public User, public Serializable
{
public:
time_t created;
@@ -49,6 +35,10 @@ class CoreExport BotInfo : public User, public Flags<BotFlag>, public Serializab
std::vector<Anope::string> botchannels;
/* Whether or not this bot is introduced to the network */
bool introduced;
+ /* Bot can only be assigned by irc ops */
+ bool oper_only;
+ /* Bot is defined in the configuration file */
+ bool conf;
/** Create a new bot.
* @param nick The nickname to assign to the bot.