mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 00:47:21 +01:00 
			
		
		
		
	relay: hotfix to fix KILL handling of relay clients
This commit is contained in:
		
							parent
							
								
									de36c7a62a
								
							
						
					
					
						commit
						d6e6e56e03
					
				@ -607,7 +607,7 @@ utils.add_hook(handle_topic, 'TOPIC')
 | 
			
		||||
def handle_kill(irc, numeric, command, args):
 | 
			
		||||
    target = args['target']
 | 
			
		||||
    userdata = args['userdata']
 | 
			
		||||
    realuser = getLocalUser(irc, target)
 | 
			
		||||
    realuser = getLocalUser(irc, target) or userdata.__dict__.get('remote')
 | 
			
		||||
    log.debug('(%s) relay handle_kill: realuser is %r', irc.name, realuser)
 | 
			
		||||
    # Target user was remote:
 | 
			
		||||
    if realuser and realuser[0] != irc.name:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user