mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +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:
parent
a30b0cb4dc
commit
3f3890ea61
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user