Skip to content

Commit

Permalink
Suppress 'Unknown command' lines from dump log output.
Browse files Browse the repository at this point in the history
  • Loading branch information
k21971 committed Jan 29, 2019
1 parent c5df85d commit d18826f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pline.c
Expand Up @@ -103,6 +103,9 @@ pline VA_DECL(const char *, line)
line = pbuf;
}
#if defined(DUMP_LOG) && defined(DUMPMSGS)
if (!strncmp(line, "Unknown command", 15))
return;

if (DUMPMSGS > 0 && !program_state.gameover) {
lastmsg = (lastmsg + 1) % DUMPMSGS;
strncpy(msgs[lastmsg], line, BUFSZ);
Expand Down

0 comments on commit d18826f

Please sign in to comment.