mirror of
https://github.com/anope/anope.git
synced 2026-06-25 14:06:37 +02:00
Fix bug #1080, changing core pseudo-client nicks in the config should register the change when the bots are brought back online, patch from Adam.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2310 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -20,6 +20,21 @@ BotInfo::BotInfo(const char *nnick)
|
||||
insert_bot(this); // XXX, this is ugly, but it needs to stay until hashing of bots is redone in STL.
|
||||
nbots++;
|
||||
this->cmdTable = NULL;
|
||||
|
||||
if (s_ChanServ && !stricmp(s_ChanServ, nnick))
|
||||
this->flags |= BI_CHANSERV;
|
||||
else if (s_BotServ && !stricmp(s_BotServ, nnick))
|
||||
this->flags |= BI_BOTSERV;
|
||||
else if (s_HostServ && !stricmp(s_BotServ, nnick))
|
||||
this->flags |= BI_HOSTSERV;
|
||||
else if (s_OperServ && !stricmp(s_OperServ, nnick))
|
||||
this->flags |= BI_OPERSERV;
|
||||
else if (s_MemoServ && !stricmp(s_MemoServ, nnick))
|
||||
this->flags |= BI_MEMOSERV;
|
||||
else if (s_NickServ && !stricmp(s_NickServ, nnick))
|
||||
this->flags |= BI_NICKSERV;
|
||||
else if (s_GlobalNoticer && !stricmp(s_GlobalNoticer, nnick))
|
||||
this->flags |= BI_GLOBAL;
|
||||
}
|
||||
|
||||
BotInfo::BotInfo(const char *nnick, const char *nuser, const char *nhost, const char *nreal)
|
||||
@@ -33,6 +48,21 @@ BotInfo::BotInfo(const char *nnick, const char *nuser, const char *nhost, const
|
||||
insert_bot(this); // XXX, this is ugly, but it needs to stay until hashing of bots is redone in STL.
|
||||
nbots++;
|
||||
this->cmdTable = NULL;
|
||||
|
||||
if (s_ChanServ && !stricmp(s_ChanServ, nnick))
|
||||
this->flags |= BI_CHANSERV;
|
||||
else if (s_BotServ && !stricmp(s_BotServ, nnick))
|
||||
this->flags |= BI_BOTSERV;
|
||||
else if (s_HostServ && !stricmp(s_BotServ, nnick))
|
||||
this->flags |= BI_HOSTSERV;
|
||||
else if (s_OperServ && !stricmp(s_OperServ, nnick))
|
||||
this->flags |= BI_OPERSERV;
|
||||
else if (s_MemoServ && !stricmp(s_MemoServ, nnick))
|
||||
this->flags |= BI_MEMOSERV;
|
||||
else if (s_NickServ && !stricmp(s_NickServ, nnick))
|
||||
this->flags |= BI_NICKSERV;
|
||||
else if (s_GlobalNoticer && !stricmp(s_GlobalNoticer, nnick))
|
||||
this->flags |= BI_GLOBAL;
|
||||
}
|
||||
|
||||
BotInfo::~BotInfo()
|
||||
|
||||
Reference in New Issue
Block a user