1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 03:23:13 +02:00

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
This commit is contained in:
Adam-
2009-12-14 03:50:23 +00:00
parent d4af97a7a7
commit 744d6d4030
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -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);
+2
View File
@@ -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);