From ddfb16de1a61a9b80ece0ba6e5fd34326abf5f18 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 14 Mar 2011 20:16:38 -0400 Subject: Fixed compile --- modules/extra/db_mysql.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/extra') diff --git a/modules/extra/db_mysql.cpp b/modules/extra/db_mysql.cpp index d8a6d934c..a6f83899e 100644 --- a/modules/extra/db_mysql.cpp +++ b/modules/extra/db_mysql.cpp @@ -640,9 +640,9 @@ class DBMySQL : public Module FOREACH_MOD(I_OnDatabaseWriteMetadata, OnDatabaseWriteMetadata(WriteChannelMetadata, CurChannel)); } - for (patricia_tree::iterator it(BotListByNick); it.next();) + for (Anope::insensitive_map::const_iterator it = BotListByNick.begin(), it_end = BotListByNick.end(); it != it_end; ++it) { - CurBot = *it; + CurBot = it->second; FOREACH_MOD(I_OnDatabaseWriteMetadata, OnDatabaseWriteMetadata(WriteBotMetadata, CurBot)); /* This is for the core bots, bots added by users are already handled by an event */ @@ -1222,8 +1222,8 @@ static void SaveDatabases() me->RunQuery("TRUNCATE TABLE `anope_bs_core`"); - for (patricia_tree::iterator it(BotListByNick); it.next();) - me->OnBotCreate(*it); + for (Anope::insensitive_map::const_iterator it = BotListByNick.begin(), it_end = BotListByNick.end(); it != it_end; ++it) + me->OnBotCreate(it->second); me->RunQuery("TRUNCATE TABLE `anope_cs_info`"); me->RunQuery("TRUNCATE TABLE `anope_bs_badwords`"); -- cgit