diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-09-04 12:22:28 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-09-04 12:22:28 +0200 |
commit | db248e7d99636809a88f0ddb5ccf9a8034cbdf36 (patch) | |
tree | 8279fa28c09a21803498e7ea3d2938a2fbc06ce1 /src/modules | |
parent | 87025fd5ac24bb758eec053e2f92382835e8ecd1 (diff) |
m_services_account Call ModeHandler::RemoveMode() instead of duplicating code
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_services_account.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/modules/m_services_account.cpp b/src/modules/m_services_account.cpp index edb6f6ef5..f84c9a378 100644 --- a/src/modules/m_services_account.cpp +++ b/src/modules/m_services_account.cpp @@ -178,12 +178,7 @@ class ModuleServicesAccount : public Module { /* On nickchange, if they have +r, remove it */ if (user->IsModeSet(m5) && assign(user->nick) != oldnick) - { - std::vector<std::string> modechange; - modechange.push_back(user->nick); - modechange.push_back("-r"); - ServerInstance->Modes->Process(modechange, ServerInstance->FakeClient, ModeParser::MODE_LOCALONLY); - } + m5.RemoveMode(user); } ModResult OnUserPreMessage(User* user, void* dest, int target_type, std::string& text, char status, CUList& exempt_list, MessageType msgtype) CXX11_OVERRIDE |