Add consistent > prompt for IF mode in server loop

This commit is contained in:
Jared Miller 2026-02-10 17:50:35 -05:00
parent ac1d16095e
commit b81bc3edc8
Signed by: shmup
GPG key ID: 22B5C6D66A38B06C

View file

@ -315,8 +315,7 @@ async def shell(
if player.mode == "editor" and player.editor:
_writer.write(f" {player.editor.cursor + 1}> ")
elif player.mode == "if" and player.if_session:
# IF mode: game writes its own prompt, don't add another
pass
_writer.write("> ")
else:
_writer.write("mud> ")
await _writer.drain()