|
@@ -132,7 +132,13 @@ public final class ChannelEventHandler extends EventHandler implements
|
132
|
132
|
cChannel.getChannelClient(cChannel.getTopicSetter(), true), cChannel.getTopic());
|
133
|
133
|
}
|
134
|
134
|
|
135
|
|
- if (!bIsJoinTopic || !newTopic.getTopic().isEmpty()) {
|
|
135
|
+ if (!bIsJoinTopic
|
|
136
|
+ || (owner.getCurrentTopic() == null && !newTopic.getTopic().isEmpty())
|
|
137
|
+ || (owner.getCurrentTopic() != null
|
|
138
|
+ && !newTopic.getTopic().equals(owner.getCurrentTopic().getTopic()))) {
|
|
139
|
+ // Only add the topic if it's being changed when we're on the
|
|
140
|
+ // channel (i.e., not a "joinTopic"), or if it's different to the
|
|
141
|
+ // one we're expecting
|
136
|
142
|
owner.addTopic(newTopic);
|
137
|
143
|
}
|
138
|
144
|
}
|