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.
This commit is contained in:
James Lu 2015-03-11 15:51:47 -07:00
parent 4470805b5f
commit 172f7bdd63
1 changed files with 0 additions and 4 deletions

View File

@ -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')])