diff options
author | Adam <Adam@anope.org> | 2011-08-09 00:06:44 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-08-09 00:06:44 -0400 |
commit | 91c3363c1578d24e70d0ed215d6aedc769076f08 (patch) | |
tree | c3f77b446225b3d9b52691cabb84b2fd3d10ac62 /src/regchannel.cpp | |
parent | b7542fd6f29b5fec45314dbf65f599c5bd2b3650 (diff) |
Hopefully sort this AccessGroup::HasPriv once and for all
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r-- | src/regchannel.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp index ce5bef71c..3b246fece 100644 --- a/src/regchannel.cpp +++ b/src/regchannel.cpp @@ -258,12 +258,14 @@ AccessGroup ChannelInfo::AccessFor(User *u) AccessGroup group; + group.SuperAdmin = u->SuperAdmin; + group.Founder = IsFounder(u, this); + group.ci = this; + for (unsigned i = 0, end = this->access.size(); i < end; ++i) if (this->access[i]->Matches(u, nc)) group.push_back(this->access[i]); - group.SuperAdmin = u->SuperAdmin; - return group; } @@ -271,6 +273,9 @@ AccessGroup ChannelInfo::AccessFor(NickCore *nc) { AccessGroup group; + group.Founder = (this->founder && this->founder == nc); + group.ci = this; + for (unsigned i = 0, end = this->access.size(); i < end; ++i) if (this->access[i]->Matches(NULL, nc)) group.push_back(this->access[i]); |