summaryrefslogtreecommitdiff
path: root/modules/core/db_plain.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-08-13 18:45:50 -0400
committerAdam <Adam@anope.org>2010-08-13 18:45:50 -0400
commitd4c7f67b5858e70c86753ba769100fc3401e074e (patch)
treeeb00933ecb68874786185a709b93c574d883a96e /modules/core/db_plain.cpp
parentd05afb3ca376d0683409c992e4a1cf5a665517dc (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.cpp5
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> &params)
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";