diff options
author | Michael <michaelhazell@hotmail.com> | 2020-10-20 02:14:33 -0400 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-10-24 22:59:51 +0100 |
commit | f6d30f8fef02e9571628bd3cc6519c2b897ff496 (patch) | |
tree | e3793c732c3b5c555c6aac7e47b77c355084c79a /src/modules | |
parent | 4c801a70be6ec095797689bf2240ec875ba840c7 (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.cpp | 5 |
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 |