From 4cdbf560e196af86935b1b730af84412c8b25ecb Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 4 Oct 2024 13:01:29 +0100 Subject: Fix matching extended bans in services. Extended bans are stored without their prefix. Therefore, we should not try to strip their prefix before matching. Closes #288. Co-authored-by: k4be --- src/modes.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/modes.cpp b/src/modes.cpp index b0fbf9cca..57d8806e1 100644 --- a/src/modes.cpp +++ b/src/modes.cpp @@ -835,8 +835,7 @@ bool Entry::Matches(User *u, bool full) const if (cm != NULL && cm->type == MODE_LIST) { ChannelModeList *cml = anope_dynamic_static_cast(cm); - if (cml->Matches(u, this)) - return true; + return cml->Matches(u, this); } } -- cgit