mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-07 19:49:23 +01:00
Added a replySuccess if the user making the request isn't in the channels he's requesting the bot part.
This commit is contained in:
parent
12f9d6ed11
commit
96e8f32999
@ -232,6 +232,12 @@ class Admin(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
for channel in L:
|
for channel in L:
|
||||||
conf.supybot.channels().remove(channel)
|
conf.supybot.channels().remove(channel)
|
||||||
irc.queueMsg(ircmsgs.parts(args, msg.nick))
|
irc.queueMsg(ircmsgs.parts(args, msg.nick))
|
||||||
|
inAtLeastOneChannel = False
|
||||||
|
for channel in args:
|
||||||
|
if msg.nick in irc.state.channels[arg].users:
|
||||||
|
inAtLeastOneChannel = True
|
||||||
|
if not inAtLeastOneChannel:
|
||||||
|
irc.replySuccess()
|
||||||
|
|
||||||
def disable(self, irc, msg, args):
|
def disable(self, irc, msg, args):
|
||||||
"""<command>
|
"""<command>
|
||||||
|
Loading…
Reference in New Issue
Block a user