]> git.sommitrealweird.co.uk Git - bashbot.git/commitdiff
Make add slightly better
authorBrett Parker <iDunno@sommitrealweird.co.uk>
Wed, 18 Sep 2019 06:46:52 +0000 (07:46 +0100)
committerBrett Parker <iDunno@sommitrealweird.co.uk>
Wed, 18 Sep 2019 06:46:52 +0000 (07:46 +0100)
bashbot.sh [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index a47be46..f3c5676
@@ -184,8 +184,9 @@ EOF
     if [[ $? -ne 0 ]]; then
         send_privmsg $channel "Couldn't parse date/time ${dataparts[0]} ${dataparts[1]}"
     else
-        send_privmsg $channel "Added reminder for ${dataparts[0]} ${dataparts[1]}: ${dataparts[@]:2}"
-        reminders[$timestamp]="${dataparts[@]:2}"
+        text="${dataparts[@]:2}"
+        send_privmsg $channel "Added reminder for ${dataparts[0]} ${dataparts[1]}: $text"
+        reminders[$timestamp]="$text"
     fi
 }