3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-02-20 07:20:59 +01:00

coreplugin: block attempts to call commands (in PM) from PyLink bots

This commit is contained in:
James Lu 2015-10-02 23:41:21 -07:00
parent 17cfdcab0a
commit bd85e1fa82

View File

@ -20,7 +20,7 @@ utils.add_hook(handle_kick, 'KICK')
def handle_commands(irc, source, command, args): def handle_commands(irc, source, command, args):
"""Handle commands sent to the PyLink client (PRIVMSG).""" """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.called_by = source
irc.callCommand(source, args['text']) irc.callCommand(source, args['text'])