From: Pasi Kallinen Date: Sat, 27 Aug 2016 18:07:33 +0000 (+0300) Subject: Also pass raw printed texts to the msghandler X-Git-Tag: NetHack-3.6.1_RC01~619 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95447b1cf5bb9865d8df07d66ec2a6ac3f4cf1ed;p=nethack Also pass raw printed texts to the msghandler --- diff --git a/src/pline.c b/src/pline.c index c539218b6..c38ff33af 100644 --- a/src/pline.c +++ b/src/pline.c @@ -336,6 +336,9 @@ VA_DECL(const char *, line) pbuf[BUFSZ - 1] = '\0'; /* terminate strncpy or truncate vsprintf */ } raw_print(line); +#if defined(MSGHANDLER) && (defined(POSIX_TYPES) || defined(__GNUC__)) + execplinehandler(line); +#endif #if !(defined(USE_STDARG) || defined(USE_VARARGS)) VA_END(); /* (see vpline) */ #endif