Code:
on *:text:*:#yourchannel: {
  var %temptext < $+ $nick $+ > $1-
  if ($chr(3) isin %temptext) {
    set %i 1
    while (%i <= $gettok($1-,0,3)) {
      if ($left($gettok($1-,%i,3),1) == 0) {
        if ($mid($gettok($1-,%i,3),2,1) !isnum) {
          var %temptext $replace($left($gettok(%temptext,%i,3),1),0,15)
        }
        elseif ($mid($gettok($1-,%i,3),2,1) == 0) {
          var %temptext $replace($left($gettok(%temptext,%i,3),2),00,15)
        }
        elseif ($mid($gettok($1-,%i,3),2,1) == 1) {
          var %temptext $replace($left($gettok(%temptext,%i,3),2),01,14)
        }
      }
      elseif ($left($gettok($1-,%i,3),1) ==  1 && $mid($gettok($1-,%i,3),2,1) !isnum) {
          var %temptext $replace($left($gettok(%temptext,%i,3),1),1,14)
      }
      inc %i
    }
  }
  echo @yourcustomwindow %temptext
}


Ok, this should do it for you. I can't test it right now. If it isn't working, let me know what it is doing.

It will replace any Ctrl-K 0 or Ctrl-K 00 (white) with Ctrl-K 15 (light gray).

It will replace any Ctrl-K 1 or Ctrl-K 01 (black) with Ctrl-K 14 (dark gray).

All other colors should be left alone. Let me know if it works.


Invision Support
#Invision on irc.irchighway.net