From ad14c8145b8090aee0f4946b3b503786b6f8d1fb Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 12 Dec 2011 15:37:08 -0500 Subject: [PATCH] Update channel last used times when founders use the channel, too --- src/regchannel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; }