summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-10-07 01:29:49 -0400
committerAdam <Adam@anope.org>2012-10-07 01:29:49 -0400
commit7f72b466ac769ca283468c45ad75441aae54c161 (patch)
treeca10ebbef0e34e7140eb8923c0fdd7f5e1397899 /src
parent4751c735ec011ecd60adb444a19567671d8cfb4e (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/regchannel.cpp4
1 files changed, 3 insertions, 1 deletions
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) : Flags<ChannelInfoFlag, C
this->founder = 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) : Flags<ChannelInfoFlag, C
this->repeattimes = 0;
this->bi = NULL;
+ this->last_topic_setter = Config->ChanServ;
+ this->last_topic_time = Anope::CurTime;
+
this->name = chname;
size_t t;