From 366836b821dd2bf4f5a97afec2a600ba5204c1fe Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 2 May 2016 18:41:51 -0700 Subject: [PATCH] relay: burst topics from the main PyLink server When a channel is being initialized, PyLink has no specific network to propagate topics from; they just get sent from whichever linked network we happened to iterate over first. This prevents misleading topic setters like 'randomnet.relay' from showing up. --- plugins/relay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/relay.py b/plugins/relay.py index e878068..0c3a74e 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -464,7 +464,7 @@ def initializeChannel(irc, channel): # Only update the topic if it's different from what we already have, # and topic bursting is complete. if remoteirc.channels[remotechan].topicset and topic != irc.channels[channel].topic: - irc.proto.topicBurst(getRemoteSid(irc, remoteirc), channel, topic) + irc.proto.topicBurst(irc.sid, channel, topic) # Send our users and channel modes to the other nets log.debug('(%s) relay.initializeChannel: joining our (%s) users: %s', irc.name, remotenet, irc.channels[channel].users)