]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
dccallow: Use irc::equals for messages received over IRC.
authorSadie Powell <sadie@witchery.services>
Thu, 23 Jan 2020 19:24:26 +0000 (19:24 +0000)
committerSadie Powell <sadie@witchery.services>
Thu, 23 Jan 2020 19:24:26 +0000 (19:24 +0000)
src/modules/m_dccallow.cpp

index 2d7fb3ce4e1532b33a16708e1ea2dafe0c719433..da91657815998bde41f34ddbe8bb7d06f3e9f024 100644 (file)
@@ -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.");