summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-12-10 16:57:18 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-12-10 16:57:18 +0100
commitbd6ca75281a84d42b8643a805ebdff82b020419e (patch)
treec705f3784b9778e8e96954d99b3b6c28081bb689 /src/modules
parentff51071f1d8ce38d3d89a214bd30626879bab03c (diff)
m_callerid Change CallerIdDataSet (wholistsme) to be a vector
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_callerid.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_callerid.cpp b/src/modules/m_callerid.cpp
index 850ce7e40..add1d929e 100644
--- a/src/modules/m_callerid.cpp
+++ b/src/modules/m_callerid.cpp
@@ -38,7 +38,7 @@ class callerid_data
{
public:
typedef std::set<User*> UserSet;
- typedef std::list<callerid_data*> CallerIdDataSet;
+ 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)");