mirror of
https://github.com/anope/anope.git
synced 2026-07-02 09:26:38 +02:00
Only match users nicks against access list entries if the entry is a mask... accidentally removed from an earlier fix for #1368
This commit is contained in:
+2
-1
@@ -122,7 +122,8 @@ void ChanAccess::unserialize(serialized_data &data)
|
||||
|
||||
bool ChanAccess::Matches(User *u, NickCore *nc)
|
||||
{
|
||||
if (u && Anope::Match(u->nick, this->mask))
|
||||
bool is_mask = this->mask.find_first_of("!@?*") != Anope::string::npos;
|
||||
if (u && is_mask && Anope::Match(u->nick, this->mask))
|
||||
return true;
|
||||
else if (u && Anope::Match(u->GetDisplayedMask(), this->mask))
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user