{de,}{op,halfop,voice} need to allowExtra

This commit is contained in:
James Vega 2004-10-08 12:33:39 +00:00
parent c5db149f65
commit 3df40e814a

View File

@ -145,7 +145,8 @@ class Channel(callbacks.Privmsg):
if not args: if not args:
args = [msg.nick] args = [msg.nick]
irc.queueMsg(ircmsgs.ops(channel, args)) 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): def halfop(self, irc, msg, args, channel):
"""[<channel>] """[<channel>]
@ -159,7 +160,7 @@ class Channel(callbacks.Privmsg):
args = [msg.nick] args = [msg.nick]
irc.queueMsg(ircmsgs.halfops(channel, args)) irc.queueMsg(ircmsgs.halfops(channel, args))
halfop = wrap(halfop, [('checkChannelCapability', 'halfop'), halfop = wrap(halfop, [('checkChannelCapability', 'halfop'),
('haveOp', 'halfop someone')]) ('haveOp', 'halfop someone')], allowExtra=True)
def voice(self, irc, msg, args, channel): def voice(self, irc, msg, args, channel):
"""[<channel>] """[<channel>]
@ -173,7 +174,7 @@ class Channel(callbacks.Privmsg):
args = [msg.nick] args = [msg.nick]
irc.queueMsg(ircmsgs.voices(channel, args)) irc.queueMsg(ircmsgs.voices(channel, args))
voice = wrap(voice, [('checkChannelCapability', 'voice'), voice = wrap(voice, [('checkChannelCapability', 'voice'),
('haveOp', 'voice someone')]) ('haveOp', 'voice someone')], allowExtra=True)
def deop(self, irc, msg, args, channel): def deop(self, irc, msg, args, channel):
"""[<channel>] [<nick> ...] """[<channel>] [<nick> ...]
@ -191,7 +192,7 @@ class Channel(callbacks.Privmsg):
else: else:
irc.queueMsg(ircmsgs.deops(channel, args)) irc.queueMsg(ircmsgs.deops(channel, args))
deop = wrap(deop, [('checkChannelCapability', 'op'), deop = wrap(deop, [('checkChannelCapability', 'op'),
('haveOp', 'deop someone')]) ('haveOp', 'deop someone')], allowExtra=True)
def dehalfop(self, irc, msg, args, channel): def dehalfop(self, irc, msg, args, channel):
"""[<channel>] [<nick> ...] """[<channel>] [<nick> ...]
@ -209,7 +210,7 @@ class Channel(callbacks.Privmsg):
else: else:
irc.queueMsg(ircmsgs.dehalfops(channel, args)) irc.queueMsg(ircmsgs.dehalfops(channel, args))
dehalfop = wrap(dehalfop, [('checkChannelCapability', 'halfop'), dehalfop = wrap(dehalfop, [('checkChannelCapability', 'halfop'),
('haveOp', 'dehalfop someone')]) ('haveOp', 'dehalfop someone')],allowExtra=True)
def devoice(self, irc, msg, args, channel): def devoice(self, irc, msg, args, channel):
"""[<channel>] [<nick> ...] """[<channel>] [<nick> ...]
@ -227,7 +228,7 @@ class Channel(callbacks.Privmsg):
else: else:
irc.queueMsg(ircmsgs.devoices(channel, args)) irc.queueMsg(ircmsgs.devoices(channel, args))
devoice = wrap(devoice, [('checkChannelCapability', 'voice'), devoice = wrap(devoice, [('checkChannelCapability', 'voice'),
('haveOp', 'devoice someone')]) ('haveOp', 'devoice someone')], allowExtra=True)
def cycle(self, irc, msg, args, channel, key): def cycle(self, irc, msg, args, channel, key):
"""[<channel>] [<key>] """[<channel>] [<key>]