summaryrefslogtreecommitdiff
path: root/modules/chanserv/main/channel.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-06-16 11:39:17 -0400
committerAdam <Adam@anope.org>2017-06-16 11:39:17 -0400
commitbc621b3612480775c945b10bcc9bd9b7e9739d97 (patch)
treefd648bae0eb8e5b1af6837af7f2df89f616015b4 /modules/chanserv/main/channel.cpp
parentff81c9bab8e1eddf044d7cb5d06d44b4a43c95d8 (diff)
chanserv: always lower channel ts to remove ops on new channels
Diffstat (limited to 'modules/chanserv/main/channel.cpp')
-rw-r--r--modules/chanserv/main/channel.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/chanserv/main/channel.cpp b/modules/chanserv/main/channel.cpp
index 5f7c71c8c..a2d56b6ec 100644
--- a/modules/chanserv/main/channel.cpp
+++ b/modules/chanserv/main/channel.cpp
@@ -81,6 +81,16 @@ void ChannelImpl::SetTimeRegistered(time_t t)
Set(&ChannelType::time_registered, t);
}
+time_t ChannelImpl::GetChannelTS()
+{
+ return Get(&ChannelType::channel_ts);
+}
+
+void ChannelImpl::SetChannelTS(time_t t)
+{
+ Set(&ChannelType::channel_ts, t);
+}
+
time_t ChannelImpl::GetLastUsed()
{
return Get(&ChannelType::last_used);