1
0
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:
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
@@ -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);