diff options
author | Adam <Adam@anope.org> | 2010-08-13 18:45:50 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-08-13 18:45:50 -0400 |
commit | d4c7f67b5858e70c86753ba769100fc3401e074e (patch) | |
tree | eb00933ecb68874786185a709b93c574d883a96e /modules/core/db_plain.cpp | |
parent | d05afb3ca376d0683409c992e4a1cf5a665517dc (diff) |
Readded in BotInfo::chancount, it never should have been removed in the first place
Diffstat (limited to 'modules/core/db_plain.cpp')
-rw-r--r-- | modules/core/db_plain.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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<Anope::string> ¶ms) bi->SetIdent(params[1]); bi->host = params[2]; bi->created = params[3].is_number_only() ? convertTo<time_t>(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<uint32>(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"; |