summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-08-22 16:39:53 +0200
committerAttila Molnar <attilamolnar@hush.com>2016-08-22 16:39:53 +0200
commit0562561425f133874685789269c8ab1aa053c95f (patch)
tree992b986e3e090815f13e0dbb98e07c5232f615c3 /src/modules
parent76710ee4c6193c2c0f702c67ccb6ec68f0a1f315 (diff)
m_services_account Detect nickname case changes by using FindNickOnly()
Gets rid of assign()
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_services_account.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_services_account.cpp b/src/modules/m_services_account.cpp
index 559f28ea8..e97e1b02f 100644
--- a/src/modules/m_services_account.cpp
+++ b/src/modules/m_services_account.cpp
@@ -181,7 +181,7 @@ class ModuleServicesAccount : public Module, public Whois::EventListener
void OnUserPostNick(User* user, const std::string &oldnick) CXX11_OVERRIDE
{
/* On nickchange, if they have +r, remove it */
- if (user->IsModeSet(m5) && assign(user->nick) != oldnick)
+ if ((user->IsModeSet(m5)) && (ServerInstance->FindNickOnly(oldnick) != user))
m5.RemoveMode(user);
}