1
0
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:
Adam
2012-01-13 15:37:17 -05:00
parent 14a2c9cec0
commit c462a69b7d
+2 -1
View File
@@ -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;