mirror of
https://github.com/anope/anope.git
synced 2026-07-03 13:23:14 +02:00
Bug #1368 - check all members of a users gruop against the access list
This commit is contained in:
@@ -24,15 +24,6 @@ class FlagsChanAccess : public ChanAccess
|
||||
{
|
||||
}
|
||||
|
||||
bool Matches(User *u, NickCore *nc)
|
||||
{
|
||||
if (u && this->mask.find_first_of("!@?*") != Anope::string::npos && (Anope::Match(u->nick, this->mask) || Anope::Match(u->GetMask(), this->mask)))
|
||||
return true;
|
||||
else if (nc && Anope::Match(nc->display, this->mask))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool HasPriv(const Anope::string &priv) const
|
||||
{
|
||||
std::map<Anope::string, char>::iterator it = defaultFlags.find(priv);
|
||||
|
||||
Reference in New Issue
Block a user