try turning
your code into an alias...
alias nickcolor {
your code here
}
then do your on *:start: { nickcolor }
also try to add stuff to call the same alias by means of joins, parts, kicks, bans, quits, op, deop, voice, etc... so that way... when any of those events happen.. the alias will be called and your script will call upon nickcolor and update the colors in your nick list.. hope that helps..