it should be this
alias quote { msg $chan $read(filename or path) }
or
alias quote { echo -a $read(filename or path) }var only set the variable once so that is why you always get 2 because it is set as 2.
If the var is the problem, is there any way to still use variables? I did plan to do more than just echo it. I just didn't make that part yet.