1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 21:46:39 +02:00

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
This commit is contained in:
Adam-
2010-04-15 02:23:41 +00:00
parent 12a4aa4dba
commit 99559d1acd
2 changed files with 4 additions and 10 deletions
+3 -3
View File
@@ -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;
}