You have to put in the new lines like it shows it on the forums. I.e
Code:
on *:input:*:{
  if ( $left($1,1) != / ) {
    msg $active $replace($1-,o,0)
    halt
  }
}

not
Code:
on *:input:*:{ if ( $left($1,1) != / ) { msg $active $replace($1-,o,0) halt } }