2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

fhem.pl: make Dispatch() case sensitive again / CUL_IT+IR bugfix (Forum #113076)

git-svn-id: https://svn.fhem.de/fhem/trunk@22630 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-08-19 08:18:42 +00:00
parent 62b3d2eab6
commit d7bbc0389d

View File

@ -3991,7 +3991,7 @@ Dispatch($$;$$)
foreach my $m (@{$clientArray}) { foreach my $m (@{$clientArray}) {
# Module is not loaded or the message is not for this module # Module is not loaded or the message is not for this module
next if(!$modules{$m} || $dmsg !~ m/$modules{$m}{Match}/is); next if(!$modules{$m} || $dmsg !~ m/$modules{$m}{Match}/s);
if( my $ffn = $modules{$m}{FingerprintFn} ) { if( my $ffn = $modules{$m}{FingerprintFn} ) {
($isdup, $idx) = CheckDuplicate($name, $dmsg, $ffn); ($isdup, $idx) = CheckDuplicate($name, $dmsg, $ffn);
@ -4018,7 +4018,7 @@ Dispatch($$;$$)
$h = $module->{MatchList} if(!$h); $h = $module->{MatchList} if(!$h);
if(defined($h)) { if(defined($h)) {
foreach my $m (sort keys %{$h}) { foreach my $m (sort keys %{$h}) {
if($dmsg =~ m/$h->{$m}/is) { if($dmsg =~ m/$h->{$m}/s) {
my ($order, $mname) = split(":", $m); my ($order, $mname) = split(":", $m);
if(AttrVal("global", "autoload_undefined_devices", 1)) { if(AttrVal("global", "autoload_undefined_devices", 1)) {