summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDylan Frank <b00mx0r@aureus.pw>2018-03-25 13:24:38 -0700
committerPeter Powell <petpow@saberuk.com>2018-03-25 21:24:38 +0100
commit90ec02cc9836e68628eed021ab0ee351e1e066e2 (patch)
tree52ae677b7d6d68a335191737aa2c6c6ace3dc04d /src
parentc7de80233a0cc52b30ad91ff2de9ecc2abdfba38 (diff)
Do not send unset topics on channel join per RFC (#1469)
Fixes #1091.
Diffstat (limited to 'src')
-rw-r--r--src/coremods/core_channel/core_channel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coremods/core_channel/core_channel.cpp b/src/coremods/core_channel/core_channel.cpp
index 20e93ec07..66630fbc3 100644
--- a/src/coremods/core_channel/core_channel.cpp
+++ b/src/coremods/core_channel/core_channel.cpp
@@ -147,7 +147,7 @@ class CoreModChannel : public Module, public CheckExemption::EventListener
// Remove existing invite, if any
invapi.Remove(localuser, chan);
- if (chan->topicset)
+ if (chan->topic.length())
Topic::ShowTopic(localuser, chan);
// Show all members of the channel, including invisible (+i) users