feat: added error message when attempting a wrong login

This commit is contained in:
Marlow Alfonso 2023-11-17 18:10:32 +00:00
parent 1aca2d58b3
commit 23268488f9
1 changed files with 5 additions and 0 deletions

5
run.py
View File

@ -144,6 +144,11 @@ You can log in to your character typing:
add_player(id, name, pl["species"], pl["description"], pl["room"])
waitlist.pop(id)
break
else:
found = False
for name, pl in characters.items():
if params_list[0] == name: found = True
if not found: mud.send_message(id, "Character '{}' not found".format(params_list[0]))
else:
mud.send_message(id, "Unknown command " + command)