summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/regchannel.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp
index e5b305d11..d2530ee4b 100644
--- a/src/regchannel.cpp
+++ b/src/regchannel.cpp
@@ -476,7 +476,7 @@ AccessGroup ChannelInfo::AccessFor(User *u)
if (this->access[i]->Matches(u, nc))
group.push_back(this->access[i]);
- if (!group.empty())
+ if (group.Founder || !group.empty())
this->last_used = Anope::CurTime;
return group;
@@ -493,6 +493,9 @@ AccessGroup ChannelInfo::AccessFor(NickCore *nc)
for (unsigned i = 0, end = this->access.size(); i < end; ++i)
if (this->access[i]->Matches(NULL, nc))
group.push_back(this->access[i]);
+
+ if (group.Founder || !group.empty())
+ this->last_used = Anope::CurTime;
return group;
}