mirror of
https://github.com/anope/anope.git
synced 2026-07-04 05:03:11 +02:00
Made the Flag class able to convert flags to strings and back
This commit is contained in:
+3
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user