summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-06 04:32:50 -0400
committerAdam <Adam@anope.org>2011-08-06 04:32:50 -0400
commit749de0054f93fb5be491e0c424ee2725ac235ccf (patch)
tree5b1095f5e6d96e91e7730620d59a9f30acd0cc95 /src
parent7849667a19d037f360ec935dca09706c9b031174 (diff)
Update last used times on channels when someone with access uses them
Diffstat (limited to 'src')
-rw-r--r--src/regchannel.cpp4
1 files changed, 4 insertions, 0 deletions
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;
}