on ur var
set %$nick $2
you should use
set $+(%,$nick) $2
and maybe put them under one on text event.