summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_dccallow.cpp4
-rw-r--r--src/modules/m_namesx.cpp2
-rw-r--r--src/modules/m_spanningtree/treeserver.cpp2
-rw-r--r--src/modules/m_timedbans.cpp2
-rw-r--r--src/modules/m_uhnames.cpp2
5 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp
index 91f22928c..2d7fb3ce4 100644
--- a/src/modules/m_dccallow.cpp
+++ b/src/modules/m_dccallow.cpp
@@ -206,13 +206,13 @@ class CommandDccallow : public Command
// if they didn't specify an action, this is probably a command
if (action != '+' && action != '-')
{
- if (!strcasecmp(parameters[0].c_str(), "LIST"))
+ if (irc::equals(parameters[0], "LIST"))
{
// list current DCCALLOW list
DisplayDCCAllowList(user);
return CMD_FAILURE;
}
- else if (!strcasecmp(parameters[0].c_str(), "HELP"))
+ else if (irc::equals(parameters[0], "HELP"))
{
// display help
DisplayHelp(user);
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;
diff --git a/src/modules/m_spanningtree/treeserver.cpp b/src/modules/m_spanningtree/treeserver.cpp
index c51c7c42c..db58fbb39 100644
--- a/src/modules/m_spanningtree/treeserver.cpp
+++ b/src/modules/m_spanningtree/treeserver.cpp
@@ -255,7 +255,7 @@ void TreeServer::CheckULine()
{
ConfigTag* tag = i->second;
std::string server = tag->getString("server");
- if (!strcasecmp(server.c_str(), GetName().c_str()))
+ if (irc::equals(server, GetName()))
{
if (this->IsRoot())
{
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp
index d3fd116bf..cbdea1179 100644
--- a/src/modules/m_timedbans.cpp
+++ b/src/modules/m_timedbans.cpp
@@ -62,7 +62,7 @@ class CommandTban : public Command
for (ListModeBase::ModeList::const_iterator i = bans->begin(); i != bans->end(); ++i)
{
const ListModeBase::ListItem& ban = *i;
- if (!strcasecmp(ban.mask.c_str(), mask.c_str()))
+ if (irc::equals(ban.mask, mask))
return true;
}
}
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;