diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-16 10:28:38 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-16 10:28:38 +0000 |
commit | 0723114557b67f0b4cf20cfb4ddbf7b45f0948e9 (patch) | |
tree | 19edad88d029ef4a0f6faf86f736fe6b3304f075 /src/modules/m_nonicks.cpp | |
parent | 5dbf63c2a3f8a702e06c95bbb0952f9b4ea34dad (diff) |
While rolling our own IS_LOCAL check with irc::string comparison is clever (TM), it does seem a little redundant :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7030 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_nonicks.cpp')
-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++) { |