X-Git-Url: https://git.sommitrealweird.co.uk/bashbot.git/blobdiff_plain/2db6a6c04eb0acae2da79b6d4ad45844e3a96042..7dde9c4dbd3295fc7911c94430132c5c6b25c0dd:/bashbot.sh diff --git a/bashbot.sh b/bashbot.sh old mode 100644 new mode 100755 index a47be46..f3c5676 --- a/bashbot.sh +++ b/bashbot.sh @@ -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 }