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:
+4
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user