Fix decorators erroring with every message

This commit is contained in:
Vgr E.Barry 2015-06-04 19:51:21 -04:00
parent 9dc52441e8
commit 910fd0a8cb

View File

@ -65,7 +65,7 @@ class cmd:
if not self.chan and chan != nick: if not self.chan and chan != nick:
return # channel command, not allowed return # channel command, not allowed
if chan.startswith("#") and chan != botconfig.CHANNEL and not (admin_only or owner_only): if chan.startswith("#") and chan != botconfig.CHANNEL and not (self.admin_only or self.owner_only):
if "" in self.cmds: if "" in self.cmds:
return # don't have empty commands triggering in other channels return # don't have empty commands triggering in other channels
for command in self.cmds: for command in self.cmds: