2 colors? I have a snippet that I posted a while back that does this with all the colors. Uses
Menu channel,status,nicklist
Has on/off options and does reversed text, as well as, reversed rainbow text. Can be removed as desired. [Link: http://www.hawkee.com/snippet/9410/]
The snippet looks nice from just a glance over it. Just needs more colors to be a rainbow :P