From 34a93cbcc2f5260dcf76bcfaf66b341b3c1bdf2b Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Sun, 17 Mar 2013 10:55:55 -0400 Subject: [PATCH] Generalize the "ignore module" code if -foo is in a subsection, ignore it, too --- src/main/modcall.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/modcall.c b/src/main/modcall.c index ff9d031590f..a5871325e18 100644 --- a/src/main/modcall.c +++ b/src/main/modcall.c @@ -2344,6 +2344,11 @@ static modcallable *do_compile_modgroup(modcallable *parent, grouptype, &junk); if (!single) { + if (cf_item_is_pair(ci) && + cf_pair_attr(cf_itemtopair(ci))[0] == '-') { + continue; + } + cf_log_err(ci, "Failed to parse \"%s\" entry.", attr); -- 2.47.3