From c9a5b0e28e4d018ae64cc54f073aedb8612840d1 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Fri, 6 Dec 2019 18:42:51 +0000 Subject: [PATCH] 50_SSChatBot: contrib 1.0.0 git-svn-id: https://svn.fhem.de/fhem/trunk@20670 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/50_SSChatBot.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fhem/contrib/DS_Starter/50_SSChatBot.pm b/fhem/contrib/DS_Starter/50_SSChatBot.pm index a6b574fc5..724880e44 100644 --- a/fhem/contrib/DS_Starter/50_SSChatBot.pm +++ b/fhem/contrib/DS_Starter/50_SSChatBot.pm @@ -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 } }