From 3ed6c709c22cbb958fe7c42942c93d20db654e5c Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 21 Jul 2012 21:27:47 -0400 Subject: [PATCH] Oops! --- earwigbot/commands/chanops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earwigbot/commands/chanops.py b/earwigbot/commands/chanops.py index d19c85f..83399fc 100644 --- a/earwigbot/commands/chanops.py +++ b/earwigbot/commands/chanops.py @@ -33,7 +33,7 @@ class ChanOps(Command): msg = "Available commands are !voice, !devoice, !op, !deop, !join, and !part." self.reply(data, msg) return - de_escalate = data.command[:2] in ["devoice", "deop"] + de_escalate = data.command in ["devoice", "deop"] if de_escalate and (not data.args or data.args[0] == data.nick): target = data.nick elif data.host not in self.config.irc["permissions"]["admins"]: