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:
parent
98803f2cc4
commit
c9a5b0e28e
@ -248,9 +248,9 @@ sub SSChatBot_Attr($$$$) {
|
||||
}
|
||||
|
||||
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));
|
||||
my $num = $1;
|
||||
return "The value of $aName must start with a slash like \"/Weather \"." unless ($aVal =~ /^\/.*$/);
|
||||
addToDevAttrList($name, "ownCommand".($num+1)); # add neue ownCommand dynamisch
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user