mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Relay.{join,part} should require admin capability.
This commit is contained in:
parent
7af1a75b26
commit
b5b3d16c00
@ -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>]
|
||||
|
Loading…
Reference in New Issue
Block a user