diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-08-28 19:27:14 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-08-28 19:27:14 +0200 |
commit | 4d41afdc2ecf36017154e7a460457c076c8aaa16 (patch) | |
tree | 26ff70e4de22c9fb8da33311a5533307b27c8aad /src/modules | |
parent | 81a616cd9f7aeb130142859798d84ed3dda8c5c3 (diff) |
m_permchannels Fix empty topic setby
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_permchannels.cpp | 2 |
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) |