fhem.pl: notify fix for freshly created device by justme1968 (Forum #23837)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5928 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2014-05-22 07:02:35 +00:00
parent d5ee421bd5
commit edf386986a

View File

@@ -1518,7 +1518,6 @@ CommandDefine($$)
return "Invalid characters in name (not A-Za-z0-9.:_): $name"
if($name !~ m/^[a-z0-9.:_]*$/i);
%ntfyHash = ();
my $m = $a[1];
if(!$modules{$m}) { # Perhaps just wrong case?
foreach my $i (keys %modules) {
@@ -1563,8 +1562,8 @@ CommandDefine($$)
$hash{NTFY_ORDER} = ($modules{$m}{NotifyOrderPrefix} ?
$modules{$m}{NotifyOrderPrefix} : "50-") . $name;
}
%ntfyHash = ();
DoTrigger("global", "DEFINED $name", 1) if($init_done);
}
return $ret;
}