mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
coreplugin: block attempts to call commands (in PM) from PyLink bots
This commit is contained in:
parent
17cfdcab0a
commit
bd85e1fa82
@ -20,7 +20,7 @@ utils.add_hook(handle_kick, 'KICK')
|
||||
|
||||
def handle_commands(irc, source, command, args):
|
||||
"""Handle commands sent to the PyLink client (PRIVMSG)."""
|
||||
if args['target'] == irc.pseudoclient.uid:
|
||||
if args['target'] == irc.pseudoclient.uid and not utils.isInternalClient(irc, source):
|
||||
irc.called_by = source
|
||||
irc.callCommand(source, args['text'])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user