mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +01:00
{de,}{op,halfop,voice} need to allowExtra
This commit is contained in:
parent
c5db149f65
commit
3df40e814a
@ -145,7 +145,8 @@ class Channel(callbacks.Privmsg):
|
||||
if not args:
|
||||
args = [msg.nick]
|
||||
irc.queueMsg(ircmsgs.ops(channel, args))
|
||||
op = wrap(op, [('checkChannelCapability', 'op'), ('haveOp', 'op someone')])
|
||||
op = wrap(op, [('checkChannelCapability', 'op'),
|
||||
('haveOp', 'op someone')], allowExtra=True)
|
||||
|
||||
def halfop(self, irc, msg, args, channel):
|
||||
"""[<channel>]
|
||||
@ -159,7 +160,7 @@ class Channel(callbacks.Privmsg):
|
||||
args = [msg.nick]
|
||||
irc.queueMsg(ircmsgs.halfops(channel, args))
|
||||
halfop = wrap(halfop, [('checkChannelCapability', 'halfop'),
|
||||
('haveOp', 'halfop someone')])
|
||||
('haveOp', 'halfop someone')], allowExtra=True)
|
||||
|
||||
def voice(self, irc, msg, args, channel):
|
||||
"""[<channel>]
|
||||
@ -173,7 +174,7 @@ class Channel(callbacks.Privmsg):
|
||||
args = [msg.nick]
|
||||
irc.queueMsg(ircmsgs.voices(channel, args))
|
||||
voice = wrap(voice, [('checkChannelCapability', 'voice'),
|
||||
('haveOp', 'voice someone')])
|
||||
('haveOp', 'voice someone')], allowExtra=True)
|
||||
|
||||
def deop(self, irc, msg, args, channel):
|
||||
"""[<channel>] [<nick> ...]
|
||||
@ -191,7 +192,7 @@ class Channel(callbacks.Privmsg):
|
||||
else:
|
||||
irc.queueMsg(ircmsgs.deops(channel, args))
|
||||
deop = wrap(deop, [('checkChannelCapability', 'op'),
|
||||
('haveOp', 'deop someone')])
|
||||
('haveOp', 'deop someone')], allowExtra=True)
|
||||
|
||||
def dehalfop(self, irc, msg, args, channel):
|
||||
"""[<channel>] [<nick> ...]
|
||||
@ -209,7 +210,7 @@ class Channel(callbacks.Privmsg):
|
||||
else:
|
||||
irc.queueMsg(ircmsgs.dehalfops(channel, args))
|
||||
dehalfop = wrap(dehalfop, [('checkChannelCapability', 'halfop'),
|
||||
('haveOp', 'dehalfop someone')])
|
||||
('haveOp', 'dehalfop someone')],allowExtra=True)
|
||||
|
||||
def devoice(self, irc, msg, args, channel):
|
||||
"""[<channel>] [<nick> ...]
|
||||
@ -227,7 +228,7 @@ class Channel(callbacks.Privmsg):
|
||||
else:
|
||||
irc.queueMsg(ircmsgs.devoices(channel, args))
|
||||
devoice = wrap(devoice, [('checkChannelCapability', 'voice'),
|
||||
('haveOp', 'devoice someone')])
|
||||
('haveOp', 'devoice someone')], allowExtra=True)
|
||||
|
||||
def cycle(self, irc, msg, args, channel, key):
|
||||
"""[<channel>] [<key>]
|
||||
|
Loading…
Reference in New Issue
Block a user