Enable selectlist again. Thanks to sweetie-pie

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@360 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2009-04-10 09:54:37 +00:00
parent 7464aa311f
commit 140bcd8754
4 changed files with 57 additions and 22 deletions

View File

@@ -138,7 +138,12 @@ structure_Set($@)
Log 1, "ERROR: endless loop detected for $d in " . $hash->{NAME};
next;
}
next if($attr{$d} && $attr{$d}{structexclude});
if($attr{$d} && $attr{$d}{structexclude}) {
my $se = $attr{$d}{structexclude};
next if($hash->{NAME} =~ m/$se/);
}
$list[0] = $d;
my $sret .= CommandSet(undef, join(" ", @list));
if($sret) {