1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 23:03:12 +02:00

Update channel last used times when founders use the channel, too

This commit is contained in:
Adam
2011-12-12 15:37:08 -05:00
parent 255a8da347
commit ad14c8145b
+4 -1
View File
@@ -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;
}