From 8f31b0cf2a753cd7b6af8fd1dc730d0693ebeb90 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 25 Mar 2014 11:03:29 +0100 Subject: Change storage of UserManager::all_opers to be a vector --- src/users.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/users.cpp') 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); -- cgit v1.3.1-10-gc9f91