From d4c7f67b5858e70c86753ba769100fc3401e074e Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 13 Aug 2010 18:45:50 -0400 Subject: Readded in BotInfo::chancount, it never should have been removed in the first place --- modules/core/db_plain.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules/core') diff --git a/modules/core/db_plain.cpp b/modules/core/db_plain.cpp index 87653ba59..4622963b7 100644 --- a/modules/core/db_plain.cpp +++ b/modules/core/db_plain.cpp @@ -413,8 +413,7 @@ static void LoadBotInfo(const std::vector ¶ms) bi->SetIdent(params[1]); bi->host = params[2]; bi->created = params[3].is_number_only() ? convertTo(params[3]) : 0; - //bi no longer has a chancount, use bi->chans.size() - //bi->chancount = atol(params[4].c_str()); + bi->chancount = params[4].is_number_only() ? convertTo(params[4]) : 0; bi->realname = params[5]; Alog(LOG_DEBUG_2) << "[db_plain]: Loaded botinfo for " << bi->nick; @@ -964,7 +963,7 @@ class DBPlain : public Module { BotInfo *bi = it->second; - db << "BI " << bi->nick << " " << bi->GetIdent() << " " << bi->host << " " << bi->created << " " << bi->chans.size() << " :" << bi->realname << endl; + db << "BI " << bi->nick << " " << bi->GetIdent() << " " << bi->host << " " << bi->created << " " << bi->chancount << " :" << bi->realname << endl; if (bi->FlagCount()) { db << "MD FLAGS"; -- cgit