From 9651ec5b64b7aed6fe9a654404467e8d64ac5020 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sat, 17 Mar 2018 15:27:04 +0000 Subject: [PATCH] commandref_join.pl: negative tagcount warning will respect noWarnings git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@16425 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- contrib/commandref_join.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/commandref_join.pl b/contrib/commandref_join.pl index 7f0beaa5d..4bc9ab1de 100755 --- a/contrib/commandref_join.pl +++ b/contrib/commandref_join.pl @@ -178,7 +178,8 @@ generateModuleCommandref($$;$$) $tagcount{$tag} +=()= ($l =~ /<$tag>/gi); $tagcount{$tag} -=()= ($l =~ /<\/$tag>/gi); if($tagcount{$tag} < 0) { - print "*** $lang $fPath: negative tagcount for $tag, line $line\n"; + print "*** $lang $fPath: negative tagcount for $tag, line $line\n" + if(!$noWarnings); $tagcount{$tag} = 0; } $llwct{$tag} = $line if(!$tagcount{$tag});