1
0
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:
Adam
2011-12-31 01:33:32 -05:00
parent f1b05acf26
commit 20aa4e85ce
6 changed files with 19 additions and 29 deletions
-9
View File
@@ -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);