From 0723114557b67f0b4cf20cfb4ddbf7b45f0948e9 Mon Sep 17 00:00:00 2001 From: w00t Date: Wed, 16 May 2007 10:28:38 +0000 Subject: 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 --- src/modules/m_nonicks.cpp | 4 +--- 1 file changed, 1 insertion(+), 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++) { -- cgit v1.2.3