aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar attilamolnar2013-08-28 19:27:14 +0200
committerGravatar attilamolnar2013-08-28 19:27:14 +0200
commit4d41afdc2ecf36017154e7a460457c076c8aaa16 (patch)
tree26ff70e4de22c9fb8da33311a5533307b27c8aad
parentUpdate COPYING file with new FSF address. (diff)
m_permchannels Fix empty topic setby
-rw-r--r--src/modules/m_permchannels.cpp2
1 files changed, 2 insertions, 0 deletions
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)