I would suggest using hash tables, and using $hget(hash,nick) to get the color back.
You would need a
Code:
on *:start: hload hashfile.hsh hashtablename
and a
Code:
on *:exit: hsave hashfile.hsh hashtablename
event, though.