From 910fd0a8cb619ee04914fbf97e44e0ea6e640c76 Mon Sep 17 00:00:00 2001 From: "Vgr E.Barry" Date: Thu, 4 Jun 2015 19:51:21 -0400 Subject: [PATCH] Fix decorators erroring with every message --- src/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decorators.py b/src/decorators.py index d4cd46f..a17e46d 100644 --- a/src/decorators.py +++ b/src/decorators.py @@ -65,7 +65,7 @@ class cmd: if not self.chan and chan != nick: 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: return # don't have empty commands triggering in other channels for command in self.cmds: