Code:
 on *:input:#channel:{
  set colorinput $iif($1 == !on,$true,$iif($1 == !off,$false,%colorinput))
  if %colorinput {
    if (/* !iswm $1) {
      if ($network == Undernet) {
        msg #tcmafia 02,03 $+ $1-
        halt
      }
    }
  }
}


so this is the correct code that will work only on this channel?