mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-17 23:52:49 +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:
|
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):
|
||||||
|
Loading…
Reference in New Issue
Block a user