summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-04-08 00:59:17 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-04-08 00:59:17 +0000
commit200e06f78dbe43c02425951b278826832ee95c80 (patch)
tree8db8425f42a1349b882d78442fdab0ce52e32eda /src
parent29ee8ab0ad390e4a1f1cf2c86aea9d1b5d3411a0 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_permchannels.cpp3
1 files changed, 3 insertions, 0 deletions
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())