try change:

Code:
var %color = %color. [ $+ [ $2 ] ]

with:

Code:
var %color = %color. [ $+ [ $nick ] ]