FHEM2FHEM and associated changes

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@732 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2010-10-24 16:08:48 +00:00
parent d53000f35c
commit eec9533e41
5 changed files with 137 additions and 28 deletions

View File

@@ -4,8 +4,6 @@ package main;
use strict;
use warnings;
sub addToAttrList($);
#####################################
sub
structure_Initialize($)
@@ -199,20 +197,4 @@ structure_Attr($@)
return undef;
}
sub
addToAttrList($)
{
my $arg = shift;
my $ua = "";
$ua = $attr{global}{userattr} if($attr{global}{userattr});
my @al = split(" ", $ua);
my %hash;
foreach my $a (@al) {
$hash{$a} = 1;
}
$hash{$arg} = 1;
$attr{global}{userattr} = join(" ", sort keys %hash);
}
1;