2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

cmdalias: test for empty parameter

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

View File

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