summaryrefslogtreecommitdiff
path: root/src/modules/m_uhnames.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-01-16 18:33:18 +0000
committerSadie Powell <sadie@witchery.services>2020-01-17 10:55:18 +0000
commit72286cca740b374661a03d8544ca28d9237875ad (patch)
treea40aaa825b2a60bacd20147d1915fa892e52d2e2 /src/modules/m_uhnames.cpp
parent2bf0722dde6938f3c423b0c3c8c494ce3f64437d (diff)
Use irc::equals instead of strcasecmp where appropriate.
Diffstat (limited to 'src/modules/m_uhnames.cpp')
-rw-r--r--src/modules/m_uhnames.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_uhnames.cpp b/src/modules/m_uhnames.cpp
index 5db980520..e89bade5e 100644
--- a/src/modules/m_uhnames.cpp
+++ b/src/modules/m_uhnames.cpp
@@ -63,7 +63,7 @@ class ModuleUHNames
*/
if (command == "PROTOCTL")
{
- if ((parameters.size()) && (!strcasecmp(parameters[0].c_str(),"UHNAMES")))
+ if (!parameters.empty() && irc::equals(parameters[0], "UHNAMES"))
{
cap.set(user, true);
return MOD_RES_DENY;