mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 00:47:21 +01:00 
			
		
		
		
	Fix SQUIT handling from 2f1a338
This commit is contained in:
		
							parent
							
								
									387d47808c
								
							
						
					
					
						commit
						de618393c0
					
				@ -1284,8 +1284,8 @@ class Protocol():
 | 
			
		||||
            if data.uplink == split_server:
 | 
			
		||||
                log.debug('Server %s also hosts server %s, removing those users too...', split_server, sid)
 | 
			
		||||
                # Recursively run SQUIT on any other hubs this server may have been connected to.
 | 
			
		||||
                args = self.handle_squit(sid, 'SQUIT', [sid, "0",
 | 
			
		||||
                                         "PyLink: Automatically splitting leaf servers of %s" % sid])
 | 
			
		||||
                args = self._squit(sid, 'SQUIT', [sid, "0",
 | 
			
		||||
                                   "PyLink: Automatically splitting leaf servers of %s" % sid])
 | 
			
		||||
                affected_users += args['users']
 | 
			
		||||
 | 
			
		||||
        for user in self.irc.servers[split_server].users.copy():
 | 
			
		||||
 | 
			
		||||
@ -42,7 +42,7 @@ class IRCS2SProtocol(Protocol):
 | 
			
		||||
 | 
			
		||||
    def handle_squit(self, numeric, command, args):
 | 
			
		||||
        """Handles incoming SQUITs."""
 | 
			
		||||
        return _squit(numeric, command, args)
 | 
			
		||||
        return self._squit(numeric, command, args)
 | 
			
		||||
 | 
			
		||||
    def handle_away(self, numeric, command, args):
 | 
			
		||||
        """Handles incoming AWAY messages."""
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user