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

View File

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