mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 08:57:25 +01:00 
			
		
		
		
	relay: don't show the network name when routing kicks through a server
This is redundant, as relay has always spawned subservers for quite some time now.
This commit is contained in:
		
							parent
							
								
									9f39e484da
								
							
						
					
					
						commit
						57f77c676d
					
				@ -1574,9 +1574,9 @@ def handle_kick(irc, source, command, args):
 | 
			
		||||
                        kname = irc.servers[kicker].name
 | 
			
		||||
                    else:
 | 
			
		||||
                        kname = irc.users.get(kicker).nick
 | 
			
		||||
                    text = "(%s/%s) %s" % (kname, irc.name, args['text'])
 | 
			
		||||
                    text = "(%s) %s" % (kname, args['text'])
 | 
			
		||||
                except AttributeError:
 | 
			
		||||
                    text = "(<unknown kicker>@%s) %s" % (irc.name, args['text'])
 | 
			
		||||
                    text = "(<unknown kicker>) %s" % args['text']
 | 
			
		||||
 | 
			
		||||
            rsid = rsid or remoteirc.sid  # Fall back to the main PyLink SID if get_relay_server_sid() fails
 | 
			
		||||
            remoteirc.kick(rsid, remotechan, real_target, text)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user