summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-03-25 11:03:29 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-03-25 11:03:29 +0100
commit8f31b0cf2a753cd7b6af8fd1dc730d0693ebeb90 (patch)
treeaeeb61f5ca048f06ec9a572002a76ce35c484b61 /src/users.cpp
parentbc730a5d1a6df1c3ff5000a96eda6e153134ae04 (diff)
Change storage of UserManager::all_opers to be a vector
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index a78e9635b..a52c392fc 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -471,8 +471,8 @@ void User::UnOper()
ServerInstance->Modes->Process(parameters, this);
- /* remove the user from the oper list. Will remove multiple entries as a safeguard against bug #404 */
- ServerInstance->Users->all_opers.remove(this);
+ // Remove the user from the oper list
+ stdalgo::vector::swaperase(ServerInstance->Users->all_opers, this);
ModeHandler* opermh = ServerInstance->Modes->FindMode('o', MODETYPE_USER);
this->SetMode(opermh, false);