diff options
Diffstat (limited to 'modules/core/db_plain.cpp')
-rw-r--r-- | modules/core/db_plain.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/core/db_plain.cpp b/modules/core/db_plain.cpp index 1c8de7fee..19acd810d 100644 --- a/modules/core/db_plain.cpp +++ b/modules/core/db_plain.cpp @@ -924,9 +924,9 @@ class DBPlain : public Module FOREACH_MOD(I_OnDatabaseWriteMetadata, OnDatabaseWriteMetadata(WriteMetadata, na)); } - for (botinfo_map::const_iterator it = BotListByNick.begin(), it_end = BotListByNick.end(); it != it_end; ++it) + for (patricia_tree<BotInfo>::const_iterator it = BotListByNick.begin(), it_end = BotListByNick.end(); it != it_end; ++it) { - BotInfo *bi = it->second; + BotInfo *bi = *it; db << "BI " << bi->nick << " " << bi->GetIdent() << " " << bi->host << " " << bi->created << " " << bi->chancount << " :" << bi->realname << endl; if (bi->HasFlag(BI_PRIVATE)) |