1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 12:06:37 +02:00

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>
This commit is contained in:
Sadie Powell
2024-10-04 13:01:29 +01:00
parent cbccc79d37
commit 4cdbf560e1
3 changed files with 19 additions and 58 deletions
+1 -2
View File
@@ -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);
}
}