diff --git a/src/cfgparse.c b/src/cfgparse.c index c7c31b418..4fe2da978 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -2506,7 +2506,7 @@ next_line: } /* .warning/.error/.notice/.diag */ - if (*args[0] == '.') { + if (*args[0] == '.' && !(global.mode & MODE_DISCOVERY)) { if (strcmp(args[0], ".alert") == 0) { if (*args[2]) { ha_alert("parsing [%s:%d]: Unexpected argument '%s' for '%s'. Use quotes if the message should contain spaces.\n",