diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_nonicks.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/m_nonicks.cpp b/src/modules/m_nonicks.cpp index 9bba77d6c..d03e2455e 100644 --- a/src/modules/m_nonicks.cpp +++ b/src/modules/m_nonicks.cpp @@ -78,9 +78,7 @@ class ModuleNoNickChange : public Module virtual int OnUserPreNick(userrec* user, const std::string &newnick) { - irc::string server = user->server; - irc::string me = ServerInstance->Config->ServerName; - if (server == me) + if (IS_LOCAL(user)) { for (UCListIter i = user->chans.begin(); i != user->chans.end(); i++) { |