From 86639a977c46d03b19dcd54ee9528c0d3b45b1c5 Mon Sep 17 00:00:00 2001 From: Justin Yulli Kim Date: Sat, 21 Jul 2012 20:32:58 -0400 Subject: [PATCH] A normal user can devoice and deop themselves --- earwigbot/commands/chanops.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/earwigbot/commands/chanops.py b/earwigbot/commands/chanops.py index 97c4fb9..74aabad 100644 --- a/earwigbot/commands/chanops.py +++ b/earwigbot/commands/chanops.py @@ -33,7 +33,9 @@ class ChanOps(Command): msg = "Available commands are !voice, !devoice, !op, !deop, !join, and !part." self.reply(data, msg) return - if data.host not in self.config.irc["permissions"]["admins"]: + if data.command[:2] == "de" and not data.args: + target = data.nick + elif data.host not in self.config.irc["permissions"]["admins"]: self.reply(data, "You must be a bot admin to use this command.") return