If you were to make "on text" do something like this:
echo $color(text) $chan (CTRL+K) $+ $color(text) < $+ $nick $+ > $1-
wouldnt it work?
What? I didn't quite understand...
If you understood what Sat said, why don't you understand what The_JD said? That is making sure there is always a color code.