summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-12-12 15:37:08 -0500
committerAdam <Adam@anope.org>2011-12-12 15:37:08 -0500
commitad14c8145b8090aee0f4946b3b503786b6f8d1fb (patch)
tree4973d13c658341d1b8674a35c85f22d2cf50667b /src
parent255a8da347298133965247156edb1693aa40bc21 (diff)
Update channel last used times when founders use the channel, too
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;
}