Make add slightly better
[bashbot.git] / bashbot.sh
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
 }