]> granicus.if.org Git - nethack/commitdiff
Also pass raw printed texts to the msghandler
authorPasi Kallinen <paxed@alt.org>
Sat, 27 Aug 2016 18:07:33 +0000 (21:07 +0300)
committerPasi Kallinen <paxed@alt.org>
Sat, 27 Aug 2016 18:07:33 +0000 (21:07 +0300)
src/pline.c

index c539218b60b4e0f1857ee1aa242689c9c1eaea97..c38ff33af06dd8daa8ffffc00bc71cd72c702e68 100644 (file)
@@ -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