Skip to content

Commit

Permalink
fix prompt regression
Browse files Browse the repository at this point in the history
  • Loading branch information
nschimme committed Jan 1, 2023
1 parent 488447f commit 9dbd240
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/parser/mumexmlparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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***";
Expand All @@ -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";
Expand Down

0 comments on commit 9dbd240

Please sign in to comment.