mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 08:57:25 +01:00 
			
		
		
		
	clientbot: don't leak private messages via the relay
This commit is contained in:
		
							parent
							
								
									da9ab6ac90
								
							
						
					
					
						commit
						51dcfb7d1e
					
				@ -170,7 +170,7 @@ class ClientbotWrapperProtocol(Protocol):
 | 
			
		||||
 | 
			
		||||
        if self.irc.pseudoclient and self.irc.pseudoclient.uid == source:
 | 
			
		||||
            self.irc.send('%s %s :%s' % (command, self._expandPUID(target), text))
 | 
			
		||||
        else:
 | 
			
		||||
        elif utils.isChannel(target):
 | 
			
		||||
            self.irc.callHooks([source, 'CLIENTBOT_MESSAGE', {'target': target, 'is_notice': notice, 'text': text}])
 | 
			
		||||
 | 
			
		||||
    def nick(self, source, newnick):
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user