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:
Jeremy Fincher 2004-04-16 07:39:55 +00:00
parent 12f9d6ed11
commit 96e8f32999
1 changed files with 6 additions and 0 deletions

View File

@ -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>