summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorMichael <michaelhazell@hotmail.com>2020-10-20 02:14:33 -0400
committerSadie Powell <sadie@witchery.services>2020-10-24 22:59:51 +0100
commitf6d30f8fef02e9571628bd3cc6519c2b897ff496 (patch)
treee3793c732c3b5c555c6aac7e47b77c355084c79a /src/modules
parent4c801a70be6ec095797689bf2240ec875ba840c7 (diff)
m_cban: Implement support for channel masks
Allows wildcards to be used
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_cban.cpp5
1 files changed, 3 insertions, 2 deletions
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 = "<channel> [<duration> [:<reason>]]";
+ flags_needed = 'o';
+ this->syntax = "<channelmask> [<duration> [:<reason>]]";
}
CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE