aboutsummaryrefslogtreecommitdiffstats
path: root/modules/autoop.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-08 20:20:58 +0000
committerGravatar Sadie Powell2026-03-08 20:20:58 +0000
commitfa3c7849d3ab085cdb31ea2fa846436d7ed5f642 (patch)
tree673527fc066b92d02ef109f503805abb2c4d9ffc /modules/autoop.cpp
parentFix various minor Doxygen issues. (diff)
downloadinspircd++-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.cpp4
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)