From 90ec02cc9836e68628eed021ab0ee351e1e066e2 Mon Sep 17 00:00:00 2001 From: Dylan Frank Date: Sun, 25 Mar 2018 13:24:38 -0700 Subject: Do not send unset topics on channel join per RFC (#1469) Fixes #1091.--- src/coremods/core_channel/core_channel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.3.1-10-gc9f91