summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-10-04 13:01:29 +0100
committerSadie Powell <sadie@witchery.services>2024-10-04 13:01:29 +0100
commit4cdbf560e196af86935b1b730af84412c8b25ecb (patch)
tree582e033909dbc3a48ab4b57ff2d9b597a6f27d4a /src
parentcbccc79d37b2ca015c65e1a641dc46ed2bdca80d (diff)
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 <k4be@pirc.pl>
Diffstat (limited to 'src')
-rw-r--r--src/modes.cpp3
1 files changed, 1 insertions, 2 deletions
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<ChannelModeList *>(cm);
- if (cml->Matches(u, this))
- return true;
+ return cml->Matches(u, this);
}
}