diff --git a/src/Admin.py b/src/Admin.py index 7c5ad4820..3d3a4d645 100755 --- a/src/Admin.py +++ b/src/Admin.py @@ -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): """