From 6205bd2aec3e6fc5d63e50aeeeb9441f338e179c Mon Sep 17 00:00:00 2001 From: Sina Mashek Date: Wed, 6 Dec 2017 13:28:00 +0200 Subject: [PATCH] Change to check plugin command list --- pinhook/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pinhook/bot.py b/pinhook/bot.py index ccc7797..55ee960 100644 --- a/pinhook/bot.py +++ b/pinhook/bot.py @@ -95,7 +95,7 @@ class Bot(irc.bot.SingleServerIRCBot): chan = nick else: chan = e.target - if e.arguments[0].startswith('!'): + if e.arguments[0] in plugin.pinhook.plugin.cmds: self.process_command(c, e, nick, chan, e.arguments[0]) else: output = None