From 4d41afdc2ecf36017154e7a460457c076c8aaa16 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Wed, 28 Aug 2013 19:27:14 +0200 Subject: m_permchannels Fix empty topic setby --- src/modules/m_permchannels.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp index 04171585b..0a7dc8ed9 100644 --- a/src/modules/m_permchannels.cpp +++ b/src/modules/m_permchannels.cpp @@ -292,6 +292,8 @@ public: c->SetTopic(NULL, topic, true); c->setby = tag->getString("topicsetby"); + if (c->setby.empty()) + c->setby = ServerInstance->Config->ServerName; unsigned int topicset = tag->getInt("topicts"); // SetTopic() sets the topic TS to now, if there was no topicts saved then don't overwrite that with a 0 if (topicset > 0) -- cgit v1.2.3