add session to account execute_cmd

This commit is contained in:
InspectorCaracal 2024-06-02 16:31:20 -06:00 committed by GitHub
parent 3b84ec1b42
commit ff3ae5ccfc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -87,11 +87,11 @@ class ContribCmdCharCreate(MuxAccountCommand):
char = session.new_char
if char.db.chargen_step:
# this means the character creation process was exited in the middle
account.execute_cmd("look")
account.execute_cmd("look", session=session)
else:
# this means character creation was completed - start playing!
# execute the ic command to start puppeting the character
account.execute_cmd("ic {}".format(char.key))
account.execute_cmd("ic {}".format(char.key), session=session)
EvMenu(session, _CHARGEN_MENU, startnode=startnode, cmd_on_exit=finish_char_callback)