diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-09-03 15:32:02 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-09-03 15:32:02 +0200 |
commit | 4634151efc02ff016e19c5f123d75824d0d6c811 (patch) | |
tree | 5fc364f465a5b68dd3bcb3098738de55734ca971 /src/users.cpp | |
parent | f55703b2fb7590333d06008add5294a6bd711339 (diff) |
Replace irc::modestacker usage with the new ModeParser::Process()
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/users.cpp b/src/users.cpp index 5f0f1a344..4f9b6c945 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -449,21 +449,15 @@ void User::UnOper() /* Remove all oper only modes from the user when the deoper - Bug #466*/ - std::string moderemove("-"); - + Modes::ChangeList changelist; for (unsigned char letter = 'A'; letter <= 'z'; letter++) { ModeHandler* mh = ServerInstance->Modes->FindMode(letter, MODETYPE_USER); if (mh && mh->NeedsOper()) - moderemove += letter; + changelist.push_remove(mh); } - - std::vector<std::string> parameters; - parameters.push_back(this->nick); - parameters.push_back(moderemove); - - ServerInstance->Modes->Process(parameters, this); + ServerInstance->Modes->Process(this, NULL, this, changelist); // Remove the user from the oper list stdalgo::vector::swaperase(ServerInstance->Users->all_opers, this); |