From 744d6d40306739a9a16b3fd7adaea9c8dc1f5c8e Mon Sep 17 00:00:00 2001 From: Adam- Date: Mon, 14 Dec 2009 03:50:23 +0000 Subject: [PATCH] Set the created time for BotServ bots correctly git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2700 5417fbe8-f217-4b02-8779-1006273d7864 --- src/bots.cpp | 2 ++ src/core/bs_bot.c | 2 ++ 2 files changed, 4 insertions(+) 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);