summaryrefslogtreecommitdiff
path: root/src/modules/m_namesx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_namesx.cpp')
-rw-r--r--src/modules/m_namesx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_namesx.cpp b/src/modules/m_namesx.cpp
index c22574863..20b2d208e 100644
--- a/src/modules/m_namesx.cpp
+++ b/src/modules/m_namesx.cpp
@@ -66,7 +66,7 @@ class ModuleNamesX
*/
if (command == "PROTOCTL")
{
- if ((parameters.size()) && (!strcasecmp(parameters[0].c_str(),"NAMESX")))
+ if (!parameters.empty() && irc::equals(parameters[0], "NAMESX"))
{
cap.set(user, true);
return MOD_RES_DENY;