Change to check plugin command list

This commit is contained in:
Sina Mashek 2017-12-06 13:28:00 +02:00
parent b09b832e30
commit 6205bd2aec

View File

@ -95,7 +95,7 @@ class Bot(irc.bot.SingleServerIRCBot):
chan = nick chan = nick
else: else:
chan = e.target 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]) self.process_command(c, e, nick, chan, e.arguments[0])
else: else:
output = None output = None