mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
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:
parent
08ac3a5206
commit
0fe5cd5fea
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user