summaryrefslogtreecommitdiff
path: root/src/bots.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-01-08 00:25:11 -0500
committerAdam <Adam@anope.org>2011-01-08 00:25:11 -0500
commit512d23d60f25203ab88605ba131a0704cadd2263 (patch)
treef7bf42a648677f02f170db1e6692fafad10d81c6 /src/bots.cpp
parent44038491264a350a8849e1d7e8547bbdec134d74 (diff)
Made the Flag class able to convert flags to strings and back
Diffstat (limited to 'src/bots.cpp')
-rw-r--r--src/bots.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bots.cpp b/src/bots.cpp
index 90edc63be..e5b29fbf7 100644
--- a/src/bots.cpp
+++ b/src/bots.cpp
@@ -20,7 +20,9 @@ BotInfo *MemoServ = NULL;
BotInfo *NickServ = NULL;
BotInfo *OperServ = NULL;
-BotInfo::BotInfo(const Anope::string &nnick, const Anope::string &nuser, const Anope::string &nhost, const Anope::string &nreal) : User(nnick, nuser, nhost, ts6_uid_retrieve())
+static const Anope::string BotFlagString[] = { "1", "BI_CORE", "BI_PRIVATE", "" };
+
+BotInfo::BotInfo(const Anope::string &nnick, const Anope::string &nuser, const Anope::string &nhost, const Anope::string &nreal) : User(nnick, nuser, nhost, ts6_uid_retrieve()), Flags<BotFlag, BI_END>(BotFlagString)
{
this->realname = nreal;
this->server = Me;