mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 00:47:21 +01:00 
			
		
		
		
	relay: don't error if the pylink service is gone (e.g. during shutdown)
This commit is contained in:
		
							parent
							
								
									b83aba0b13
								
							
						
					
					
						commit
						24b5fd92ef
					
				@ -483,7 +483,8 @@ def initialize_channel(irc, channel):
 | 
			
		||||
        log.debug('(%s) relay.initialize_channel: joining our (%s) users: %s', irc.name, remotenet, irc.channels[channel].users)
 | 
			
		||||
        relay_joins(irc, channel, irc.channels[channel].users, irc.channels[channel].ts)
 | 
			
		||||
 | 
			
		||||
        world.services['pylink'].join(irc, channel)
 | 
			
		||||
        if 'pylink' in world.services:
 | 
			
		||||
            world.services['pylink'].join(irc, channel)
 | 
			
		||||
 | 
			
		||||
def remove_channel(irc, channel):
 | 
			
		||||
    """Destroys a relay channel by parting all of its users."""
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user