50_SSChatBot: contrib 1.0.1
git-svn-id: https://svn.fhem.de/fhem/trunk@20718 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -349,8 +349,9 @@ sub SSChatBot_Set($@) {
|
|||||||
# text="a fun image" fileUrl="http://imgur.com/xxxxx" users="user1,user2"
|
# text="a fun image" fileUrl="http://imgur.com/xxxxx" users="user1,user2"
|
||||||
return undef if(!$hash->{HELPER}{USERFETCHED});
|
return undef if(!$hash->{HELPER}{USERFETCHED});
|
||||||
my $cmd = join(" ", @a);
|
my $cmd = join(" ", @a);
|
||||||
my ($text,$users,$fileUrl);
|
my ($text,$users);
|
||||||
my ($a,$h) = parseParams($cmd);
|
my $fileUrl = "";
|
||||||
|
my ($a,$h) = parseParams($cmd);
|
||||||
if($h) {
|
if($h) {
|
||||||
$text = $h->{text} if(defined $h->{text});
|
$text = $h->{text} if(defined $h->{text});
|
||||||
$users = $h->{users} if(defined $h->{users});
|
$users = $h->{users} if(defined $h->{users});
|
||||||
|
|||||||
Reference in New Issue
Block a user