From 511c4b73d258e6b06f1f67a496371cb45aca359e Mon Sep 17 00:00:00 2001 From: Adam- Date: Mon, 14 Dec 2009 21:58:33 +0000 Subject: Updated docs/IRCD to reflect recent changes in the ircdvar struct, and made botinfo constructors set created time not bs_bot, db loaders will change it later if needed git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2702 5417fbe8-f217-4b02-8779-1006273d7864 --- src/bots.cpp | 6 ++---- src/core/bs_bot.c | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'src') 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); -- cgit