summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_check.cpp2
-rw-r--r--src/modules/m_opermotd.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp
index 1d030acc6..2d06df199 100644
--- a/src/modules/m_check.cpp
+++ b/src/modules/m_check.cpp
@@ -142,7 +142,7 @@ class CommandCheck : public Command
CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE
{
- if (parameters.size() > 1 && parameters[1] != ServerInstance->Config->ServerName)
+ if (parameters.size() > 1 && !irc::equals(parameters[1], ServerInstance->Config->ServerName))
return CMD_SUCCESS;
User *targuser;
diff --git a/src/modules/m_opermotd.cpp b/src/modules/m_opermotd.cpp
index 49409a1c0..591dc97a8 100644
--- a/src/modules/m_opermotd.cpp
+++ b/src/modules/m_opermotd.cpp
@@ -36,7 +36,7 @@ class CommandOpermotd : public Command
CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE
{
- if ((parameters.empty()) || (parameters[0] == ServerInstance->Config->ServerName))
+ if ((parameters.empty()) || (irc::equals(parameters[0], ServerInstance->Config->ServerName)))
ShowOperMOTD(user);
return CMD_SUCCESS;
}