diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bots.cpp | 6 | ||||
-rw-r--r-- | src/core/bs_bot.c | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/bots.cpp b/src/bots.cpp index 19fa6199a..ff439e6d4 100644 --- a/src/bots.cpp +++ b/src/bots.cpp @@ -15,12 +15,11 @@ BotInfo::BotInfo(const char *nnick) { this->nick = sstrdup(nnick); - this->lastmsg = time(NULL); + this->lastmsg = this->created = time(NULL); this->uid = ts6_uid_retrieve(); // XXX is this safe? has ts6 been setup yet? nbots++; this->cmdTable = NULL; this->chancount = 0; - this->created = 0; if (Config.s_ChanServ && !stricmp(Config.s_ChanServ, nnick)) this->SetFlag(BI_CHANSERV); @@ -53,12 +52,11 @@ BotInfo::BotInfo(const char *nnick, const char *nuser, const char *nhost, const this->user = sstrdup(nuser); this->host = sstrdup(nhost); this->real = sstrdup(nreal); - this->lastmsg = time(NULL); + this->lastmsg = this->created = time(NULL); this->uid = ts6_uid_retrieve(); // XXX is this safe? has ts6 been setup yet? 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 fcc671b29..2c0195ee4 100644 --- a/src/core/bs_bot.c +++ b/src/core/bs_bot.c @@ -107,8 +107,6 @@ 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); |