From 200e06f78dbe43c02425951b278826832ee95c80 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 8 Apr 2009 00:59:17 +0000 Subject: Set topic timestamp on newly created channels to a dummy value to work around bug #739 without protocol changes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11292 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_permchannels.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modules') diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp index 85c83940e..68f7c0bb5 100644 --- a/src/modules/m_permchannels.cpp +++ b/src/modules/m_permchannels.cpp @@ -125,7 +125,10 @@ public: { c = new Channel(ServerInstance, channel, ServerInstance->Time()); if (!topic.empty()) + { c->SetTopic(NULL, topic, true); + c->topicset = 42; + } ServerInstance->Logs->Log("blah", DEBUG, "Added %s with topic %s", channel.c_str(), topic.c_str()); if (modes.empty()) -- cgit v1.2.3