diff options
| author | 2013-08-28 19:27:14 +0200 | |
|---|---|---|
| committer | 2013-08-28 19:27:14 +0200 | |
| commit | 4d41afdc2ecf36017154e7a460457c076c8aaa16 (patch) | |
| tree | 26ff70e4de22c9fb8da33311a5533307b27c8aad /src/modules/m_permchannels.cpp | |
| parent | Update COPYING file with new FSF address. (diff) | |
m_permchannels Fix empty topic setby
Diffstat (limited to 'src/modules/m_permchannels.cpp')
| -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) |
