Made the part command behave sensibly in the face of an empty argument list.

This commit is contained in:
Jeremy Fincher 2003-07-23 02:12:17 +00:00
parent 3fe182b9c3
commit c8fbb4581b

View File

@ -78,6 +78,8 @@ class AdminCommands(privmsgs.CapabilityCheckingPrivmsg):
Tells the bot to part the whitespace-separated list of channels
you give it.
"""
if not args:
args.append(msg.args[0])
irc.queueMsg(ircmsgs.parts(args, msg.nick))
def disable(self, irc, msg, args):