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:
+1
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user