mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 08:57:25 +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:
		
							parent
							
								
									7620cd7433
								
							
						
					
					
						commit
						9f0f4cb124
					
				@ -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.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user