From f6d30f8fef02e9571628bd3cc6519c2b897ff496 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 20 Oct 2020 02:14:33 -0400 Subject: m_cban: Implement support for channel masks Allows wildcards to be used --- src/modules/m_cban.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp index 43f53668e..dee844320 100644 --- a/src/modules/m_cban.cpp +++ b/src/modules/m_cban.cpp @@ -58,7 +58,7 @@ public: bool Matches(const std::string& s) CXX11_OVERRIDE { - return irc::equals(matchtext, s); + return InspIRCd::Match(s, matchtext); } const std::string& Displayable() CXX11_OVERRIDE @@ -94,7 +94,8 @@ class CommandCBan : public Command public: CommandCBan(Module* Creator) : Command(Creator, "CBAN", 1, 3) { - flags_needed = 'o'; this->syntax = " [ [:]]"; + flags_needed = 'o'; + this->syntax = " [ [:]]"; } CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE -- cgit v1.2.3