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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user