mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
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:
parent
4470805b5f
commit
172f7bdd63
@ -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')])
|
||||
|
Loading…
Reference in New Issue
Block a user