diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bots.cpp | 2 | ||||
-rw-r--r-- | src/core/bs_bot.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/bots.cpp b/src/bots.cpp index db236c175..19fa6199a 100644 --- a/src/bots.cpp +++ b/src/bots.cpp @@ -20,6 +20,7 @@ BotInfo::BotInfo(const char *nnick) nbots++; this->cmdTable = NULL; this->chancount = 0; + this->created = 0; if (Config.s_ChanServ && !stricmp(Config.s_ChanServ, nnick)) this->SetFlag(BI_CHANSERV); @@ -57,6 +58,7 @@ BotInfo::BotInfo(const char *nnick, const char *nuser, const char *nhost, const nbots++; this->cmdTable = NULL; this->chancount = 0; + this->created = 0; if (Config.s_ChanServ && !stricmp(Config.s_ChanServ, nnick)) this->SetFlag(BI_CHANSERV); diff --git a/src/core/bs_bot.c b/src/core/bs_bot.c index 2c0195ee4..fcc671b29 100644 --- a/src/core/bs_bot.c +++ b/src/core/bs_bot.c @@ -107,6 +107,8 @@ class CommandBSBot : public Command return MOD_CONT; } + bi->created = time(NULL); + /* We check whether user with this nick is online, and kill it if so */ EnforceQlinedNick(nick, Config.s_BotServ); |