diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-08-23 19:37:03 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-08-23 19:37:03 +0200 |
commit | bcdc3b0bb0ba957a9e99cd6db7f1242a9e587400 (patch) | |
tree | fe0c0962384f5f8aa83658fd5897aa13e29ce22e /src/modules/m_services_account.cpp | |
parent | 2df0de3c9212f7ea74fcb9a0ccf20990e47e9f2e (diff) | |
parent | 0aa6c4134011006e6166c72d9c3162b054c01bbe (diff) |
Merge branch 'master+ircstring'
Diffstat (limited to 'src/modules/m_services_account.cpp')
-rw-r--r-- | src/modules/m_services_account.cpp | 2 |
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); } |