This commit is contained in:
Kim Ravn Hansen
2025-10-22 10:09:50 +02:00
parent 3ce96deeea
commit 6a25b15530
8 changed files with 60 additions and 50 deletions

View File

@@ -398,14 +398,14 @@ class MUDClient {
// prompted.
// In fact, we should ALWAYS be in a state of just-having-been-prompted.
handlePromptMessage(data) {
let [promptText, options = {}] = data;
let [prompt, options = {}] = data;
this.shouldReply = true;
this.promptOptions = { ...{ class: "prompt" }, ...options };
//
this.writeToOutput(promptText, this.promptOptions);
this.writeToOutput(prompt, this.promptOptions);
//
// The server has asked for a password, so we set the