mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-26 04:51:06 -05: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
|
the nicks given. If no nicks are given, removes voice from the person
|
||||||
sending the message.
|
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)
|
self._voice(irc, msg, args, channel, nicks, ircmsgs.devoices)
|
||||||
devoice = wrap(devoice, ['channel', ('haveOp', 'devoice someone'),
|
devoice = wrap(devoice, ['channel', ('haveOp', 'devoice someone'),
|
||||||
any('nickInChannel')])
|
any('nickInChannel')])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user