summaryrefslogtreecommitdiff
path: root/src/bots.cpp
diff options
context:
space:
mode:
authoradam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-07-16 09:01:01 +0000
committeradam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-07-16 09:01:01 +0000
commit81d05eb8a7afdd02c31dd209c855583a99b70175 (patch)
treea7c1bec44c94a61e0700dff746afc1633b97de6d /src/bots.cpp
parent17a09abb6df727e73126a7d001f5e68c5246ba39 (diff)
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
Diffstat (limited to 'src/bots.cpp')
-rw-r--r--src/bots.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bots.cpp b/src/bots.cpp
index a46726122..a5184a847 100644
--- a/src/bots.cpp
+++ b/src/bots.cpp
@@ -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;