From bd85e1fa8223a6de0a664568ff218fb97ea6a059 Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 2 Oct 2015 23:41:21 -0700 Subject: [PATCH] coreplugin: block attempts to call commands (in PM) from PyLink bots --- coreplugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreplugin.py b/coreplugin.py index e1a4b98..7a93138 100644 --- a/coreplugin.py +++ b/coreplugin.py @@ -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'])