From 172f7bdd635fe20470fed08f6e936b61d5975b64 Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 11 Mar 2015 15:51:47 -0700 Subject: [PATCH] Channel: allow devoicing self Voice almost always requires halfop or above to set, and since having (half)op gives greater access than voice, I don't see the benefit in restricting this when it won't make a difference anyways. --- plugins/Channel/plugin.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plugins/Channel/plugin.py b/plugins/Channel/plugin.py index a9b404aa4..f60bd3b9a 100644 --- a/plugins/Channel/plugin.py +++ b/plugins/Channel/plugin.py @@ -259,10 +259,6 @@ class Channel(callbacks.Plugin): the nicks given. If no nicks are given, removes voice from the person sending the message. """ - if irc.nick in nicks: - irc.error(_('I cowardly refuse to devoice myself. If you really ' - 'want me devoiced, tell me to op you and then devoice ' - 'me yourself.'), Raise=True) self._voice(irc, msg, args, channel, nicks, ircmsgs.devoices) devoice = wrap(devoice, ['channel', ('haveOp', 'devoice someone'), any('nickInChannel')])