aboutsummaryrefslogtreecommitdiff
path: root/modules/rmode.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/rmode.cpp
parentFix various minor Doxygen issues. (diff)
Make the ban checking functions able to check any list mode.
Diffstat (limited to 'modules/rmode.cpp')
-rw-r--r--modules/rmode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/rmode.cpp b/modules/rmode.cpp
index d0e4c1563..c161ffdde 100644
--- a/modules/rmode.cpp
+++ b/modules/rmode.cpp
@@ -93,7 +93,7 @@ public:
auto* targuser = parameters.size() > 2 ? ServerInstance->Users.FindNick(parameters[2]) : nullptr;
for (const auto& entry : *ml)
{
- if (targuser ? chan->CheckBan(targuser, entry.mask) : InspIRCd::Match(entry.mask, pattern))
+ if (targuser ? chan->CheckListEntry(mh, targuser, entry.mask) : InspIRCd::Match(entry.mask, pattern))
changelist.push_remove(mh, entry.mask);
}
}