91_notify.pm: Hide the COMMAND entry.

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@7002 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-11-16 17:23:35 +00:00
parent 87a8ea9da2
commit eddd7cc178

View File

@ -42,7 +42,7 @@ notify_Define($$)
eval { "Hallo" =~ m/^$re$/ }; eval { "Hallo" =~ m/^$re$/ };
return "Bad regexp: $@" if($@); return "Bad regexp: $@" if($@);
$hash->{REGEXP} = $re; $hash->{REGEXP} = $re;
$hash->{COMMAND} = $command; $hash->{".COMMAND"} = $command;
$hash->{STATE} = "active"; $hash->{STATE} = "active";
notifyRegexpChanged($hash, $re); notifyRegexpChanged($hash, $re);
@ -83,7 +83,7 @@ notify_Exec($$)
"%TYPE" => $t, "%TYPE" => $t,
"%EVENT" => $s "%EVENT" => $s
); );
my $exec = EvalSpecials($ntfy->{COMMAND}, %specials); my $exec = EvalSpecials($ntfy->{".COMMAND"}, %specials);
Log3 $ln, 4, "$ln exec $exec"; Log3 $ln, 4, "$ln exec $exec";
my $r = AnalyzeCommandChain(undef, $exec); my $r = AnalyzeCommandChain(undef, $exec);
@ -140,7 +140,7 @@ notify_Set($@)
eval { "Hallo" =~ m/^$re$/ }; eval { "Hallo" =~ m/^$re$/ };
return "Bad regexp: $@" if($@); return "Bad regexp: $@" if($@);
$hash->{REGEXP} = $re; $hash->{REGEXP} = $re;
$hash->{DEF} = "$re $hash->{COMMAND}"; $hash->{DEF} = "$re ".$hash->{".COMMAND"};
notifyRegexpChanged($hash, $re); notifyRegexpChanged($hash, $re);
} elsif($cmd eq "removeRegexpPart") { } elsif($cmd eq "removeRegexpPart") {
@ -154,7 +154,7 @@ notify_Set($@)
eval { "Hallo" =~ m/^$re$/ }; eval { "Hallo" =~ m/^$re$/ };
return "Bad regexp: $@" if($@); return "Bad regexp: $@" if($@);
$hash->{REGEXP} = $re; $hash->{REGEXP} = $re;
$hash->{DEF} = "$re $hash->{COMMAND}"; $hash->{DEF} = "$re ".$hash->{".COMMAND"};
notifyRegexpChanged($hash, $re); notifyRegexpChanged($hash, $re);
} }