From e1fbfcc8b592c2a88c93cbcc702697c35764681b Mon Sep 17 00:00:00 2001 From: PatR Date: Wed, 5 Apr 2017 12:44:55 -0700 Subject: [PATCH] fix #H5264 fix MSGTYPE handling was being suppressed, except during prompting when it was intended to be suppressed. --- doc/fixes36.1 | 1 + src/pline.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/fixes36.1 b/doc/fixes36.1 index 7fa058915..5ad9d072a 100644 --- a/doc/fixes36.1 +++ b/doc/fixes36.1 @@ -403,6 +403,7 @@ DUMPLOG: RIP tombstone was printed for characters who survived (ascended, artifact creation violated illiterate conduct when artifact name was assigned, behavior intended only for creating Sting or Orcrist via naming tty: revert to pline() for issuing prompts (override MSGTYPE=hide differently) +previous tty-revert fix had the override test backwards, breaking MSGTYPE Platform- and/or Interface-Specific Fixes diff --git a/src/pline.c b/src/pline.c index 118ed82ee..2c174e672 100644 --- a/src/pline.c +++ b/src/pline.c @@ -145,7 +145,7 @@ VA_DECL(const char *, line) if ((pline_flags & SUPPRESS_HISTORY) == 0) dumplogmsg(line); #endif - if ((pline_flags & OVERRIDE_MSGTYPE) != 0) { + if ((pline_flags & OVERRIDE_MSGTYPE) == 0) { msgtyp = msgtype_type(line, no_repeat); if (msgtyp == MSGTYP_NOSHOW || (msgtyp == MSGTYP_NOREP && !strcmp(line, prevmsg))) -- 2.40.0