mirror of
https://github.com/anope/anope.git
synced 2026-07-06 20:03:14 +02:00
Bug #1368 - check all members of a users gruop against the access list
This commit is contained in:
@@ -31,15 +31,6 @@ class AccessChanAccess : 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 &name) const
|
||||
{
|
||||
return this->ci->GetLevel(name) != ACCESS_INVALID && this->level >= this->ci->GetLevel(name);
|
||||
|
||||
Reference in New Issue
Block a user