summaryrefslogtreecommitdiff
path: root/src/regchannel.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-14 18:50:22 -0400
committerAdam <Adam@anope.org>2011-08-14 18:50:22 -0400
commit960c339a4ccb1be522ec800d9143d30db8ac7001 (patch)
tree6cf9bde695f498f5c2db5b58f97c9733e085a3e7 /src/regchannel.cpp
parentfddb2304c6a05559b4d2c550885646dc2e77e875 (diff)
Brought back the old 1.7 behavior of a level -1 matching all users and 0 matching all identified users
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r--src/regchannel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp
index 9bf3122c4..e57f555ac 100644
--- a/src/regchannel.cpp
+++ b/src/regchannel.cpp
@@ -220,6 +220,7 @@ AccessGroup ChannelInfo::AccessFor(User *u)
group.SuperAdmin = u->SuperAdmin;
group.Founder = IsFounder(u, this);
group.ci = this;
+ group.nc = u->Account();
for (unsigned i = 0, end = this->access.size(); i < end; ++i)
if (this->access[i]->Matches(u, nc))
@@ -237,6 +238,7 @@ AccessGroup ChannelInfo::AccessFor(NickCore *nc)
group.Founder = (this->founder && this->founder == nc);
group.ci = this;
+ group.nc = nc;
for (unsigned i = 0, end = this->access.size(); i < end; ++i)
if (this->access[i]->Matches(NULL, nc))