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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user