mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +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:
|
||||
conf.supybot.channels().remove(channel)
|
||||
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):
|
||||
"""<command>
|
||||
|
Loading…
Reference in New Issue
Block a user