Code:
on *:input:#: {
  if ($chr(99) !isin $chan($chan).mode) { var %color = 04 }
  if ($1- == lol) { msg $chan %color $+ LooooooooooL }
  elseif ($1- == xa) { msg $chan %color $+ XaXaXaXa }
  halt
}


This should work on any network that uses lowercase "c" for disallowing colors. Note that it uses $chr(99) so it only checks for lowercase c and not uppercase C. Just repeat the elseif line and change the comparison/output. Remember to include %color $+ so that it will include colors or not based on the mode.

One note, this is set up to use one color. If you need more than one color for outputs, you can basically just take that mode line and incorporate it into the IF/ELSEIF comparison lines using different colors...

Code:
on *:input:#: {
  if ($1- == lol) {
    if ($chr(99) !isin $chan($chan).mode) { var %color = 04 }
    msg $chan %color $+ LooooooooooL
  }
  elseif ($1- == xa) {
    if ($chr(99) !isin $chan($chan).mode) { var %color = 10 }
    msg $chan %color $+ XaXaXaXa
  }
  halt
}


That makes it longer, but handles using more than one color. Of course, you can also adjust it further if you need more than one color in a single output.


Invision Support
#Invision on irc.irchighway.net