mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +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:
parent
4098787375
commit
e8a5d8fe37
@ -42,7 +42,7 @@ use JSON; # imports encode_json, decode_json, to_json and from_json.
|
|||||||
my $babblelinkname = "babbles"; # link text
|
my $babblelinkname = "babbles"; # link text
|
||||||
my $babblehiddenroom = "babbleRoom"; # hidden room
|
my $babblehiddenroom = "babbleRoom"; # hidden room
|
||||||
my $babblepublicroom = "babble"; # public room
|
my $babblepublicroom = "babble"; # public room
|
||||||
my $babbleversion = "1.08";
|
my $babbleversion = "1.09";
|
||||||
|
|
||||||
my %babble_transtable_EN = (
|
my %babble_transtable_EN = (
|
||||||
"ok" => "OK",
|
"ok" => "OK",
|
||||||
@ -1493,7 +1493,10 @@ sub Babble_antistupidity($) {
|
|||||||
|
|
||||||
my $name = $hash->{NAME};
|
my $name = $hash->{NAME};
|
||||||
my $regexp = $hash->{DATA}{"re_places"};
|
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++){
|
for( my $i=0; $i<$imax; $i++){
|
||||||
my $dev = lc($hash->{DATA}{"devs"}[$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"
|
Log 1,"[Babble] Baaaaah ! It is not a good idea to name a device $dev similar to a place in Babble"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user