summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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())