From bd6ca75281a84d42b8643a805ebdff82b020419e Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Wed, 10 Dec 2014 16:57:18 +0100 Subject: m_callerid Change CallerIdDataSet (wholistsme) to be a vector --- src/modules/m_callerid.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules') 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 UserSet; - typedef std::list CallerIdDataSet; + typedef std::vector 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)"); -- cgit v1.2.3