2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 23:06:37 +00:00

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:
nasseeder1 2019-12-12 18:07:35 +00:00
parent 970844074a
commit 49e13eb49e

View File

@ -349,8 +349,9 @@ sub SSChatBot_Set($@) {
# text="a fun image" fileUrl="http://imgur.com/xxxxx" users="user1,user2"
return undef if(!$hash->{HELPER}{USERFETCHED});
my $cmd = join(" ", @a);
my ($text,$users,$fileUrl);
my ($a,$h) = parseParams($cmd);
my ($text,$users);
my $fileUrl = "";
my ($a,$h) = parseParams($cmd);
if($h) {
$text = $h->{text} if(defined $h->{text});
$users = $h->{users} if(defined $h->{users});