From 9dbd240e8a8b1a60651ae386904fc8047bc0f0da Mon Sep 17 00:00:00 2001 From: Nils Schimmelmann Date: Sun, 1 Jan 2023 12:00:00 -0500 Subject: [PATCH] fix prompt regression --- src/parser/mumexmlparser.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/parser/mumexmlparser.cpp b/src/parser/mumexmlparser.cpp index 2d7b0126f..b8d9afd16 100644 --- a/src/parser/mumexmlparser.cpp +++ b/src/parser/mumexmlparser.cpp @@ -69,11 +69,24 @@ void MumeXmlParser::slot_parseNewMudInput(const TelnetData &data) { switch (data.type) { case TelnetDataEnum::DELAY: // Twiddlers + if (XPS_DEBUG_TO_FILE) { + (*debugStream) << "***STYPE***"; + (*debugStream) << "DELAY"; + (*debugStream) << "***ETYPE***"; + } m_lastPrompt = data.line; if (getConfig().parser.removeXmlTags) stripXmlEntities(m_lastPrompt); parse(data, true); break; + case TelnetDataEnum::PROMPT: + if (XPS_DEBUG_TO_FILE) { + (*debugStream) << "***STYPE***"; + (*debugStream) << "PROMPT"; + (*debugStream) << "***ETYPE***"; + } + parse(data, true); + break; case TelnetDataEnum::UNKNOWN: if (XPS_DEBUG_TO_FILE) { (*debugStream) << "***STYPE***"; @@ -85,7 +98,6 @@ void MumeXmlParser::slot_parseNewMudInput(const TelnetData &data) case TelnetDataEnum::LF: case TelnetDataEnum::CRLF: - case TelnetDataEnum::PROMPT: if (XPS_DEBUG_TO_FILE) { (*debugStream) << "***STYPE***"; (*debugStream) << "CRLF";