3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

clientbot: don't leak private messages via the relay

This commit is contained in:
James Lu 2016-07-23 21:09:15 -07:00
parent da9ab6ac90
commit 51dcfb7d1e

View File

@ -170,7 +170,7 @@ class ClientbotWrapperProtocol(Protocol):
if self.irc.pseudoclient and self.irc.pseudoclient.uid == source: if self.irc.pseudoclient and self.irc.pseudoclient.uid == source:
self.irc.send('%s %s :%s' % (command, self._expandPUID(target), text)) 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}]) self.irc.callHooks([source, 'CLIENTBOT_MESSAGE', {'target': target, 'is_notice': notice, 'text': text}])
def nick(self, source, newnick): def nick(self, source, newnick):