From 7aa3fbc0c71665e014bb4407effbeeccdf21571a Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Mon, 30 Nov 2015 11:03:50 +0000 Subject: [PATCH] 32_yowsup.pm: fixed sendimg images to groups git-svn-id: https://svn.fhem.de/fhem/trunk@10055 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/32_yowsup.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/32_yowsup.pm b/fhem/FHEM/32_yowsup.pm index 82fd40ac2..efc424043 100644 --- a/fhem/FHEM/32_yowsup.pm +++ b/fhem/FHEM/32_yowsup.pm @@ -284,7 +284,12 @@ yowsup_Set($$@) return undef; } elsif( $cmd eq 'image' ) { - return yowsup_Write( $hash, "/image send $args[0] $args[1]" ); + readingsSingleUpdate( $hash, "sent", 'image: '. join( ' ', @args ), 1 ); + + my $number = shift(@args); + $number =~ s/\./-/; + + return yowsup_Write( $hash, "/image send $number $args[0]" ); return undef;