summaryrefslogtreecommitdiff
path: root/src/core/db_plain.cpp
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-04-15 02:23:41 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-04-15 02:23:41 +0000
commit99559d1acd2e082b4f7929e9630e5764091c99cb (patch)
tree5c9cb98ada2360a0a97d7cc7dfc22480b43967bb /src/core/db_plain.cpp
parent12a4aa4dba5d65b301dcf7292a2789aa5176fe7b (diff)
Fixed loading botserv bots time created & number of channels from the database, and only readd the core bots if none exist, not just if nickserv doesn't exist
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2892 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/db_plain.cpp')
-rw-r--r--src/core/db_plain.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/db_plain.cpp b/src/core/db_plain.cpp
index 7daa40d7c..c4f067098 100644
--- a/src/core/db_plain.cpp
+++ b/src/core/db_plain.cpp
@@ -433,9 +433,9 @@ static void LoadBotInfo(const std::vector<std::string> &params)
bi = new BotInfo(params[0]);
bi->user = sstrdup(params[1].c_str());
bi->host = sstrdup(params[2].c_str());
- bi->created = strtol(params[4].c_str(), NULL, 10);
- bi->chancount = atol(params[5].c_str());
- bi->real = sstrdup(params[6].c_str());
+ bi->created = atol(params[3].c_str());
+ bi->chancount = atol(params[4].c_str());
+ bi->real = sstrdup(params[5].c_str());
Alog(LOG_DEBUG_2) << "[db_plain]: Loaded botinfo for " << bi->nick;
}