2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-16 16:56:04 +00:00

95_Babble.pm: Bugfix 1.09

git-svn-id: https://svn.fhem.de/fhem/trunk@16131 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
phenning 2018-02-09 10:26:31 +00:00
parent 4098787375
commit e8a5d8fe37

View File

@ -42,7 +42,7 @@ use JSON; # imports encode_json, decode_json, to_json and from_json.
my $babblelinkname = "babbles"; # link text
my $babblehiddenroom = "babbleRoom"; # hidden room
my $babblepublicroom = "babble"; # public room
my $babbleversion = "1.08";
my $babbleversion = "1.09";
my %babble_transtable_EN = (
"ok" => "OK",
@ -1493,7 +1493,10 @@ sub Babble_antistupidity($) {
my $name = $hash->{NAME};
my $regexp = $hash->{DATA}{"re_places"};
my $imax = int(@{$hash->{DATA}{"devs"}});
my $devs = $hash->{DATA}{"devs"};
return
if( !defined($regexp) || !defined($devs) );
my $imax = int(@{$devs});
for( my $i=0; $i<$imax; $i++){
my $dev = lc($hash->{DATA}{"devs"}[$i]);
Log 1,"[Babble] Baaaaah ! It is not a good idea to name a device $dev similar to a place in Babble"