diff options
author | Sadie Powell <sadie@witchery.services> | 2024-10-04 13:01:29 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-10-04 13:01:29 +0100 |
commit | 4cdbf560e196af86935b1b730af84412c8b25ecb (patch) | |
tree | 582e033909dbc3a48ab4b57ff2d9b597a6f27d4a /src | |
parent | cbccc79d37b2ca015c65e1a641dc46ed2bdca80d (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.cpp | 3 |
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); } } |