diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-15 18:04:41 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-15 18:04:41 +0000 |
commit | 82503a6b82042fb6d648690c8505dd31c6c057df (patch) | |
tree | 4c845284ddd2f31400fa8152a500e7a927f30ddc /src/modules/m_nonicks.cpp | |
parent | 4d5a17380bc71cabe544b41c7c8a26a292384f3d (diff) |
Made modules use irc::string where they were using strcasecmp()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1397 e03df62e-2008-0410-955e-edbf42e46eb7
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++) { |