summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-09-04 12:22:28 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-09-04 12:22:28 +0200
commitdb248e7d99636809a88f0ddb5ccf9a8034cbdf36 (patch)
tree8279fa28c09a21803498e7ea3d2938a2fbc06ce1 /src/modules
parent87025fd5ac24bb758eec053e2f92382835e8ecd1 (diff)
m_services_account Call ModeHandler::RemoveMode() instead of duplicating code
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_services_account.cpp7
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