diff options
| author | 2026-03-08 20:20:58 +0000 | |
|---|---|---|
| committer | 2026-03-08 20:20:58 +0000 | |
| commit | fa3c7849d3ab085cdb31ea2fa846436d7ed5f642 (patch) | |
| tree | 673527fc066b92d02ef109f503805abb2c4d9ffc /modules/autoop.cpp | |
| parent | Fix various minor Doxygen issues. (diff) | |
| download | inspircd++-fa3c7849d3ab085cdb31ea2fa846436d7ed5f642.tar.gz inspircd++-fa3c7849d3ab085cdb31ea2fa846436d7ed5f642.tar.bz2 inspircd++-fa3c7849d3ab085cdb31ea2fa846436d7ed5f642.zip | |
Make the ban checking functions able to check any list mode.
Diffstat (limited to 'modules/autoop.cpp')
| -rw-r--r-- | modules/autoop.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/autoop.cpp b/modules/autoop.cpp index 3b6306052..c3f0bb6da 100644 --- a/modules/autoop.cpp +++ b/modules/autoop.cpp @@ -36,7 +36,7 @@ class AutoOpList final { public: AutoOpList(Module* Creator) - : ListModeBase(Creator, "autoop", 'w', RPL_ACCESSLIST, RPL_ENDOFACCESSLIST) + : ListModeBase(Creator, "autoop", 'w', RPL_ACCESSLIST, RPL_ENDOFACCESSLIST, true) { ranktoset = ranktounset = OP_VALUE; syntax = "<prefix>:<mask>"; @@ -115,7 +115,7 @@ public: if (colon == std::string::npos) continue; - if (memb->chan->CheckBan(memb->user, entry.mask.substr(colon + 1))) + if (memb->chan->CheckListEntry(&mh, memb->user, entry.mask.substr(colon + 1))) { PrefixMode* given = AutoOpList::FindMode(entry.mask.substr(0, colon)); if (given) |
