cmd_connect improved to fail gracefully if no argument is provided.

This commit is contained in:
jamesvclemence 2009-01-12 08:49:19 +00:00
parent da505f3bf5
commit d80d93b250

View file

@ -16,6 +16,11 @@ def cmd_connect(command):
session = command.session
# Argument check.
# Fail gracefully if no argument is provided
if not command.command_argument:
session.msg("No arguments provided\n Usage (without <>): connect <email> <password>")
return
arg_list = command.command_argument.split()
if not functions_general.cmd_check_num_args(session, arg_list, 2):
return