From 749de0054f93fb5be491e0c424ee2725ac235ccf Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 6 Aug 2011 04:32:50 -0400 Subject: Update last used times on channels when someone with access uses them --- src/regchannel.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/regchannel.cpp b/src/regchannel.cpp index 7ab251fc9..1528a6ce5 100644 --- a/src/regchannel.cpp +++ b/src/regchannel.cpp @@ -226,13 +226,17 @@ bool ChannelInfo::HasPriv(User *u, ChannelAccess priv) case CA_AUTOVOICE: break; default: + this->last_used = Anope::CurTime; return true; } } if (group.HasPriv(CA_FOUNDER) || group.HasPriv(priv)) + { + this->last_used = Anope::CurTime; return true; + } return false; } -- cgit