From 619f9fccf8f1ed4f2104d4e88eaa24137cc60b7f Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Sat, 10 Jan 2004 03:29:30 +0000 Subject: [PATCH] cmdassist enhancement again > [...] it also suppresses the message about how to disable > cmdassist in this case. Well it would have done so if I'd used the right diff.... --- src/cmd.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/cmd.c b/src/cmd.c index 54824a0f2..475a6d828 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -2189,8 +2189,12 @@ const char *msg; putstr(win, 0, " < up"); putstr(win, 0, " > down"); putstr(win, 0, " . direct at yourself"); - putstr(win, 0, ""); - putstr(win, 0, "(Suppress this message with !cmdassist in config file.)"); + if (msg) { + /* non-null msg means that this wasn't an explicit user request */ + putstr(win, 0, ""); + putstr(win, 0, + "(Suppress this message with !cmdassist in config file.)"); + } display_nhwindow(win, FALSE); destroy_nhwindow(win); return TRUE; -- 2.40.0