Relay.{join,part} should require admin capability.

This commit is contained in:
James Vega 2005-05-03 21:45:55 +00:00
parent 7af1a75b26
commit b5b3d16c00

View File

@ -107,7 +107,7 @@ class Relay(callbacks.Plugin):
networkGroup = conf.supybot.networks.get(otherIrc.network)
otherIrc.queueMsg(networkGroup.channels.join(channel))
irc.replySuccess()
join = wrap(join, ['channel'])
join = wrap(join, ['channel', 'admin'])
def part(self, irc, msg, args, channel):
"""<channel>
@ -121,7 +121,7 @@ class Relay(callbacks.Plugin):
if channel in otherIrc.state.channels:
otherIrc.queueMsg(ircmsgs.part(channel))
irc.replySuccess()
part = wrap(part, ['channel'])
part = wrap(part, ['channel', 'admin'])
def nicks(self, irc, msg, args, channel):
"""[<channel>]