mirror of
https://github.com/evennia/evennia.git
synced 2026-03-22 15:56:30 +01:00
cmd_connect improved to fail gracefully if no argument is provided.
This commit is contained in:
parent
da505f3bf5
commit
d80d93b250
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue