2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-17 11:26:03 +00:00

50_SSChatBot: contrib 1.0.0

git-svn-id: https://svn.fhem.de/fhem/trunk@20669 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2019-12-06 12:58:40 +00:00
parent a802338991
commit 98803f2cc4

View File

@ -244,11 +244,12 @@ sub SSChatBot_Attr($$$$) {
if ($cmd eq "set") {
if ($aName =~ m/httptimeout/) {
unless ($aVal =~ /^\d+$/) { return " The Value for $aName is not valid. Use only figures 1-9 !";}
unless ($aVal =~ /^\d+$/) { return "The Value for $aName is not valid. Use only figures 1-9 !";}
}
if ($aName =~ m/ownCommand([1-9][0-9]*)$/) {
# add neue ownCommand dynamisch
return "The $aName must beginn with a slash like \"/Weather \"." unless ($aVal =~ /^\/.*$/);
addToDevAttrList($name, "ownCommand".($1+1));
}
}