mirror of
https://github.com/anope/anope.git
synced 2026-06-26 11:16:38 +02:00
Initialize botinfo->flags on bot creation to fix some database problems
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2381 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -20,6 +20,7 @@ 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;
|
||||
this->flags = 0;
|
||||
|
||||
if (s_ChanServ && !stricmp(s_ChanServ, nnick))
|
||||
this->flags |= BI_CHANSERV;
|
||||
@@ -48,6 +49,7 @@ 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;
|
||||
this->flags = 0;
|
||||
|
||||
if (s_ChanServ && !stricmp(s_ChanServ, nnick))
|
||||
this->flags |= BI_CHANSERV;
|
||||
|
||||
Reference in New Issue
Block a user