mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 03:59:03 -04:00
m_services_account Detect nickname case changes by using FindNickOnly()
Gets rid of assign()
This commit is contained in:
parent
76710ee4c6
commit
0562561425
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user