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

50_SSChatBot: contrib 1.0.0

git-svn-id: https://svn.fhem.de/fhem/trunk@20670 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2019-12-06 18:42:51 +00:00
parent 98803f2cc4
commit c9a5b0e28e

View File

@ -248,9 +248,9 @@ sub SSChatBot_Attr($$$$) {
} }
if ($aName =~ m/ownCommand([1-9][0-9]*)$/) { if ($aName =~ m/ownCommand([1-9][0-9]*)$/) {
# add neue ownCommand dynamisch my $num = $1;
return "The $aName must beginn with a slash like \"/Weather \"." unless ($aVal =~ /^\/.*$/); return "The value of $aName must start with a slash like \"/Weather \"." unless ($aVal =~ /^\/.*$/);
addToDevAttrList($name, "ownCommand".($1+1)); addToDevAttrList($name, "ownCommand".($num+1)); # add neue ownCommand dynamisch
} }
} }