diff options
author | Sadie Powell <sadie@witchery.services> | 2020-01-23 19:24:26 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-01-23 19:24:26 +0000 |
commit | 5612c4314ec9812f3ec3cffc900cd7cbfed6bce3 (patch) | |
tree | 76176db022ecf39a14a8a17baa4c8207ec79a33b /src | |
parent | a697104a8c768228ce494967c11ff669d4aa3555 (diff) |
dccallow: Use irc::equals for messages received over IRC.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_dccallow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index 2d7fb3ce4..da9165781 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -437,7 +437,7 @@ class ModuleDCCAllow : public Module const std::string type = buf.substr(0, s); - if (stdalgo::string::equalsci(type, "SEND")) + if (irc::equals(type, "SEND")) { size_t first; @@ -489,7 +489,7 @@ class ModuleDCCAllow : public Module u->WriteNotice("If you trust " + user->nick + " and were expecting this, you can type /DCCALLOW HELP for information on the DCCALLOW system."); return MOD_RES_DENY; } - else if ((blockchat) && (stdalgo::string::equalsci(type, "CHAT"))) + else if (blockchat && irc::equals(type, "CHAT")) { user->WriteNotice("The user " + u->nick + " is not accepting DCC CHAT requests from you."); u->WriteNotice(user->nick + " (" + user->ident + "@" + user->GetDisplayedHost() + ") attempted to initiate a DCC CHAT session, which was blocked."); |