notify: fix matching of eventMap transformed events (forum #24332)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@6081 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2014-06-07 16:31:18 +00:00
parent 5932789ff9
commit 1b6bb3d31c

View File

@@ -67,7 +67,9 @@ notify_Exec($$)
$s = "" if(!defined($s));
my $found = ($n =~ m/^$re$/ || "$n:$s" =~ m/^$re$/);
if(!$found && AttrVal($n, "eventMap", undef)) {
(undef, $s) = ReplaceEventMap($n, [$n,$s], 0);
my @res = ReplaceEventMap($n, [$n,$s], 0);
shift @res;
$s = join(" ", @res);
$found = ("$n:$s" =~ m/^$re$/);
}
if($found) {