From 5612c4314ec9812f3ec3cffc900cd7cbfed6bce3 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 23 Jan 2020 19:24:26 +0000 Subject: [PATCH] dccallow: Use irc::equals for messages received over IRC. --- src/modules/m_dccallow.cpp | 4 ++-- 1 file 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."); -- 2.39.5