You can't use echo to add or remove tokens. It will echo what you are doing, but won't actually change any variables. Replace echo -s with set. Or, if you don't need these variables anywhere other than in this script, then change all set to var to make them local variables (they don't remain set after they aren't needed anymore).

And, to make it easier on your message lines... before them, you can use:
Code:
tokenize 32 %newlinesdisp


And then, for your message lines, you can use:
Code:
msg $chan $1 - $2 - $3
msg $chan $4 - $5 - $6


etc.