cmdalias: test for empty parameter

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4087 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-10-21 18:22:13 +00:00
parent 08ac3a5206
commit 0fe5cd5fea

View File

@ -77,7 +77,7 @@ CommandCmdAlias($$$)
foreach my $n (sort keys %{$a->{Alias}}) { foreach my $n (sort keys %{$a->{Alias}}) {
my $h = $a->{Alias}{$n}; my $h = $a->{Alias}{$n};
next if($h->{InExec}); next if($h->{InExec});
if($param =~ m/$h->{PARAM}/) { if($param =~ m/^$h->{PARAM}$/) {
my %specials= ("%EVENT" => $param); my %specials= ("%EVENT" => $param);
my $exec = EvalSpecials($h->{NEWCMD}, %specials); my $exec = EvalSpecials($h->{NEWCMD}, %specials);
$h->{InExec} = 1; $h->{InExec} = 1;