summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-12-14 03:50:23 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-12-14 03:50:23 +0000
commit744d6d40306739a9a16b3fd7adaea9c8dc1f5c8e (patch)
tree91235c6f8a7a38f585145663c952910022accceb /src
parentd4af97a7a7bac9fb6dba1b223700fcdc614ae024 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/bots.cpp2
-rw-r--r--src/core/bs_bot.c2
2 files changed, 4 insertions, 0 deletions
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);