What's wrong with 'c isincs $chan($chan).mode'?

Or perhaps:
Code:
ON *:INPUT:#: {
  var %msg, %color = $iif(c !isincs $chan($chan).mode, 04)
  if ($1- == lol) {
    %msg = %color $+ LooooooooL
  }
  elseif ($1- == xa) {
    %msg = %color $+ XaXaXaXa
  }
  if (%msg != $null) {
    say %msg
    haltdef
  }
}