mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 08:57:25 +01:00 
			
		
		
		
	p10: also acknowledge our own kicks with a PART
(adapted from commit 1438f9e566a8f1778a448fd3fb3d1fc9da90a26b)
This commit is contained in:
		
							parent
							
								
									79db7b2124
								
							
						
					
					
						commit
						1f377adfee
					
				@ -365,6 +365,11 @@ class P10Protocol(IRCS2SProtocol):
 | 
			
		||||
        # handle_part() does that just fine.
 | 
			
		||||
        self.handle_part(target, 'KICK', [channel])
 | 
			
		||||
 | 
			
		||||
        if self.irc.isInternalClient(target):
 | 
			
		||||
            # Send PART in response to acknowledge the KICK, per
 | 
			
		||||
            # https://github.com/evilnet/nefarious2/blob/ed12d64/doc/p10.txt#L611-L616
 | 
			
		||||
            self._send(target, 'L %s :%s' % (channel, reason))
 | 
			
		||||
 | 
			
		||||
    def kill(self, numeric, target, reason):
 | 
			
		||||
        """Sends a kill from a PyLink client/server."""
 | 
			
		||||
        # <- ABAAA D AyAAA :nefarious.midnight.vpn!GL (test)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user