2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

98_cmdalias.pm: log message if called recursively (Forum #58122)

git-svn-id: https://svn.fhem.de/fhem/trunk@12238 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-10-02 12:58:11 +00:00
parent a30b0cb4dc
commit 3f3890ea61

View File

@ -80,7 +80,10 @@ CommandCmdAlias($$$)
return "Unknown command $a, internal error" if(!$a);
foreach my $n (sort keys %{$a->{Alias}}) {
my $h = $a->{Alias}{$n};
next if($h->{InExec});
if($h->{InExec}) {
Log3 $n, 3, "cmdalias $n called recursively, skipping execution";
next;
}
if($param =~ m/^$h->{PARAM}$/) {
my %specials= ("%EVENT" => $param);
my $exec = EvalSpecials($h->{NEWCMD}, %specials);