From 7f41a98869e9ad55a821d90337361f2ea1d678d0 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Mon, 17 Jan 2022 21:02:51 +0000 Subject: [PATCH] fhem.pl: fix the Dispatch/Multi-ParseFn-Bugfix (Forum #125292) git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@25489 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fhem.pl b/fhem.pl index 0e11c9359..69ad36a8e 100755 --- a/fhem.pl +++ b/fhem.pl @@ -4108,10 +4108,9 @@ Dispatch($$;$$) $h = $module->{MatchList} if(!$h); if(defined($h)) { foreach my $m (sort keys %{$h}) { - next if($modules{$m}{LOADED}); # checked in the loop above, #125292 + my ($order, $mname) = split(":", $m); + next if($modules{$mname}{LOADED}); # checked in the loop above, #125292 if($dmsg =~ m/$h->{$m}/s) { - my ($order, $mname) = split(":", $m); - if(AttrVal("global", "autoload_undefined_devices", 1)) { my $newm = LoadModule($mname); $mname = $newm if($newm ne "UNDEFINED");