From fa3c7849d3ab085cdb31ea2fa846436d7ed5f642 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 8 Mar 2026 20:20:58 +0000 Subject: Make the ban checking functions able to check any list mode. --- modules/autoop.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/autoop.cpp') 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 = ":"; @@ -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) -- cgit v1.3.1-10-gc9f91