mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 00:47:21 +01:00 
			
		
		
		
	clientbot: format kick reasons with the sender prefix
This commit is contained in:
		
							parent
							
								
									e7ae6ddbff
								
							
						
					
					
						commit
						dd0c5c7e63
					
				@ -109,6 +109,7 @@ class ClientbotWrapperProtocol(Protocol):
 | 
			
		||||
    def kick(self, source, channel, target, reason=''):
 | 
			
		||||
        """Sends channel kicks."""
 | 
			
		||||
        # TODO: handle kick failures and send rejoin hooks for the target
 | 
			
		||||
        reason = self._formatText(source, reason)
 | 
			
		||||
        self.irc.send('KICK %s %s :%s' % (channel, self._expandPUID(target), reason))
 | 
			
		||||
        self.part(target, channel, reason=reason)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user