From 7c3648bb2c45f3722baa554a274d93b50026f436 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Thu, 14 Apr 2016 23:18:54 +1000 Subject: [PATCH] Don't hide first word of server notices containing "***" Using strstr() here is entirely wrong. The intention is to catch notices prefixed by *** or similar, and that's already detected further up in the code, stored in the flag variable. --- source/notice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/notice.c b/source/notice.c index 0f50681..e40856e 100644 --- a/source/notice.c +++ b/source/notice.c @@ -608,7 +608,7 @@ static void parse_server_notice(const char *from, char *line) else #endif { - if (strstr(line, "***")) + if (!flag) next_arg(line, &line); set_display_target(NULL, LOG_SNOTE);