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.
This commit is contained in:
Kevin Easton
2016-04-14 23:18:54 +10:00
parent 6b0aa0f8fe
commit 7c3648bb2c

View File

@@ -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);