From 7790a7f98c56a16e6fed2bf51168881902880c62 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 21 Nov 2010 00:20:36 -0500 Subject: Allow the patricia tree to store non-pointers --- modules/extra/db_mysql.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/extra') diff --git a/modules/extra/db_mysql.cpp b/modules/extra/db_mysql.cpp index e49676658..8b90fa59e 100644 --- a/modules/extra/db_mysql.cpp +++ b/modules/extra/db_mysql.cpp @@ -965,7 +965,7 @@ class DBMySQL : public Module FOREACH_MOD(I_OnDatabaseWriteMetadata, OnDatabaseWriteMetadata(WriteChannelMetadata, CurChannel)); } - for (patricia_tree::const_iterator it = BotListByNick.begin(), it_end = BotListByNick.end(); it != it_end; ++it) + for (patricia_tree::const_iterator it = BotListByNick.begin(), it_end = BotListByNick.end(); it != it_end; ++it) { CurBot = *it; FOREACH_MOD(I_OnDatabaseWriteMetadata, OnDatabaseWriteMetadata(WriteBotMetadata, CurBot)); @@ -1540,7 +1540,7 @@ static void SaveDatabases() me->RunQuery("TRUNCATE TABLE `anope_bs_core`"); - for (patricia_tree::const_iterator it = BotListByNick.begin(), it_end = BotListByNick.end(); it != it_end; ++it) + for (patricia_tree::const_iterator it = BotListByNick.begin(), it_end = BotListByNick.end(); it != it_end; ++it) me->OnBotCreate(*it); me->RunQuery("TRUNCATE TABLE `anope_cs_info`"); -- cgit