From 4bf7c9003719a835bf8199cba81f3b35ef5d0375 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@16425 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/commandref_join.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fhem/contrib/commandref_join.pl b/fhem/contrib/commandref_join.pl index 7f0beaa5d..4bc9ab1de 100755 --- a/fhem/contrib/commandref_join.pl +++ b/fhem/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});