From 9f0f4cb1246c95335f42a24f7c5016175e6fba66 Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 31 Aug 2015 09:28:14 -0700 Subject: [PATCH] relay: burst the right set of modes It's moments like this where I wonder what I'm even doing with my life... --- plugins/relay.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/relay.py b/plugins/relay.py index 87af3c8..64ae956 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -232,7 +232,6 @@ def initializeChannel(irc, channel): log.debug('(%s) initializeChannel: all_links: %s', irc.name, all_links) # Iterate over all the remote channels linked in this relay. for link in all_links: - modes = [] remotenet, remotechan = link if remotenet == irc.name: continue @@ -245,7 +244,7 @@ def initializeChannel(irc, channel): # Join their (remote) users and set their modes. relayJoins(remoteirc, remotechan, rc.users, rc.ts) relayModes(remoteirc, irc, remoteirc.sid, remotechan, rc.modes) - relayModes(irc, remoteirc, irc.sid, channel, modes) + relayModes(irc, remoteirc, irc.sid, channel, c.modes) topic = remoteirc.channels[remotechan].topic # Only update the topic if it's different from what we already have, # and topic bursting is complete.