3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

relay: burst the right set of modes

It's moments like this where I wonder what I'm even doing with my life...
This commit is contained in:
James Lu 2015-08-31 09:28:14 -07:00
parent 7620cd7433
commit 9f0f4cb124

View File

@ -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.