summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/listmode.h2
-rw-r--r--src/listmode.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/listmode.h b/include/listmode.h
index 04044948c..94af1d524 100644
--- a/include/listmode.h
+++ b/include/listmode.h
@@ -37,7 +37,7 @@ class CoreExport ListModeBase : public ModeHandler
/** Items stored in the channel's list
*/
- typedef std::list<ListItem> ModeList;
+ typedef std::vector<ListItem> ModeList;
private:
class ChanData
diff --git a/src/listmode.cpp b/src/listmode.cpp
index 19f2d6061..4e2b95e7d 100644
--- a/src/listmode.cpp
+++ b/src/listmode.cpp
@@ -192,7 +192,7 @@ ModeAction ListModeBase::OnModeChange(User* source, User*, Channel* channel, std
{
if (parameter == it->mask)
{
- cd->list.erase(it);
+ stdalgo::vector::swaperase(cd->list, it);
return MODEACTION_ALLOW;
}
}