mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +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)
|
networkGroup = conf.supybot.networks.get(otherIrc.network)
|
||||||
otherIrc.queueMsg(networkGroup.channels.join(channel))
|
otherIrc.queueMsg(networkGroup.channels.join(channel))
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
join = wrap(join, ['channel'])
|
join = wrap(join, ['channel', 'admin'])
|
||||||
|
|
||||||
def part(self, irc, msg, args, channel):
|
def part(self, irc, msg, args, channel):
|
||||||
"""<channel>
|
"""<channel>
|
||||||
@ -121,7 +121,7 @@ class Relay(callbacks.Plugin):
|
|||||||
if channel in otherIrc.state.channels:
|
if channel in otherIrc.state.channels:
|
||||||
otherIrc.queueMsg(ircmsgs.part(channel))
|
otherIrc.queueMsg(ircmsgs.part(channel))
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
part = wrap(part, ['channel'])
|
part = wrap(part, ['channel', 'admin'])
|
||||||
|
|
||||||
def nicks(self, irc, msg, args, channel):
|
def nicks(self, irc, msg, args, channel):
|
||||||
"""[<channel>]
|
"""[<channel>]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user