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

FHEM/91_notify.pm: Allow multline matches in notify (Forum #82940)

git-svn-id: https://svn.fhem.de/fhem/trunk@15937 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-01-20 13:43:28 +00:00
parent b360987ad8
commit c599692ce9

View File

@ -82,7 +82,7 @@ notify_Exec($$)
for (my $i = 0; $i < $max; $i++) { for (my $i = 0; $i < $max; $i++) {
my $s = $events->[$i]; my $s = $events->[$i];
$s = "" if(!defined($s)); $s = "" if(!defined($s));
my $found = ($n =~ m/^$re$/ || "$n:$s" =~ m/^$re$/); my $found = ($n =~ m/^$re$/ || "$n:$s" =~ m/^$re$/s);
if(!$found && AttrVal($n, "eventMap", undef)) { if(!$found && AttrVal($n, "eventMap", undef)) {
my @res = ReplaceEventMap($n, [$n,$s], 0); my @res = ReplaceEventMap($n, [$n,$s], 0);
shift @res; shift @res;