diff options
| author | 2026-03-08 20:20:58 +0000 | |
|---|---|---|
| committer | 2026-03-08 20:20:58 +0000 | |
| commit | fa3c7849d3ab085cdb31ea2fa846436d7ed5f642 (patch) | |
| tree | 673527fc066b92d02ef109f503805abb2c4d9ffc /src/listmode.cpp | |
| parent | Fix various minor Doxygen issues. (diff) | |
Make the ban checking functions able to check any list mode.
Diffstat (limited to 'src/listmode.cpp')
| -rw-r--r-- | src/listmode.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/listmode.cpp b/src/listmode.cpp index 446d523e4..98b975f12 100644 --- a/src/listmode.cpp +++ b/src/listmode.cpp @@ -23,11 +23,12 @@ #include "inspircd.h" #include "listmode.h" -ListModeBase::ListModeBase(Module* Creator, const std::string& Name, char modechar, unsigned int lnum, unsigned int eolnum) +ListModeBase::ListModeBase(Module* Creator, const std::string& Name, char modechar, unsigned int lnum, unsigned int eolnum, bool am) : ModeHandler(Creator, Name, modechar, PARAM_ALWAYS, MODETYPE_CHANNEL, MC_LIST) + , extItem(Creator, "list-mode-" + Name, ExtensionType::CHANNEL) + , accepts_mask(am) , listnumeric(lnum) , endoflistnumeric(eolnum) - , extItem(Creator, "list-mode-" + Name, ExtensionType::CHANNEL) { list = true; } |
