diff options
Diffstat (limited to 'src/modules/m_nonicks.cpp')
-rw-r--r-- | src/modules/m_nonicks.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_nonicks.cpp b/src/modules/m_nonicks.cpp index 582a87626..3591b954d 100644 --- a/src/modules/m_nonicks.cpp +++ b/src/modules/m_nonicks.cpp @@ -20,6 +20,7 @@ #include "channels.h" #include "modules.h" #include "helperfuncs.h" +#include "hashcomp.h" /* $ModDesc: Provides support for unreal-style GLOBOPS and umode +g */ @@ -66,7 +67,9 @@ class ModuleNoNickChange : public Module virtual int OnUserPreNick(userrec* user, std::string newnick) { - if (!strcasecmp(user->server,Srv->GetServerName().c_str())) + irc::string server = user->server; + irc::string me = Srv->GetServerName().c_str(); + if (server == me) { for (int i =0; i != MAXCHANS; i++) { |