]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_callerid.cpp
Merge branch 'master+listmode'
[user/henk/code/inspircd.git] / src / modules / m_callerid.cpp
index 850ce7e400219e63a112663d52b1bd04ae0519f5..efbf1a81b690609b9277030cde7eb242e42c4a89 100644 (file)
@@ -37,8 +37,8 @@ enum
 class callerid_data
 {
  public:
-       typedef std::set<User*> UserSet;
-       typedef std::list<callerid_data*> CallerIdDataSet;
+       typedef insp::flat_set<User*> UserSet;
+       typedef std::vector<callerid_data*> CallerIdDataSet;
 
        time_t lastnotify;
 
@@ -139,7 +139,7 @@ struct CallerIDExtInfo : public ExtensionItem
                                continue; // shouldn't happen, but oh well.
                        }
 
-                       if (!stdalgo::erase(targ->wholistsme, dat))
+                       if (!stdalgo::vector::swaperase(targ->wholistsme, dat))
                                ServerInstance->Logs->Log(MODNAME, LOG_DEFAULT, "ERROR: Inconsistency detected in callerid state, please report (2)");
                }
                delete dat;
@@ -320,7 +320,7 @@ public:
                        return false;
                }
 
-               if (!stdalgo::erase(dat2->wholistsme, dat))
+               if (!stdalgo::vector::swaperase(dat2->wholistsme, dat))
                        ServerInstance->Logs->Log(MODNAME, LOG_DEFAULT, "ERROR: Inconsistency detected in callerid state, please report (4)");