From 7f72b466ac769ca283468c45ad75441aae54c161 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 7 Oct 2012 01:29:49 -0400 Subject: Set sane default last_topic_setter and last_topic_time in the event an empty topic is locked right after registering a channel without previously being set --- src/regchannel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/regchannel.cpp b/src/regchannel.cpp index 1e0014454..ccb2235b3 100644 --- a/src/regchannel.cpp +++ b/src/regchannel.cpp @@ -235,7 +235,6 @@ ChannelInfo::ChannelInfo(const Anope::string &chname) : Flagsfounder = NULL; this->successor = NULL; - this->last_topic_time = 0; this->c = findchan(chname); if (this->c) this->c->ci = this; @@ -244,6 +243,9 @@ ChannelInfo::ChannelInfo(const Anope::string &chname) : Flagsrepeattimes = 0; this->bi = NULL; + this->last_topic_setter = Config->ChanServ; + this->last_topic_time = Anope::CurTime; + this->name = chname; size_t t; -- cgit