Code:
on *:INPUT:*:{
  if ( $1 == /msg ) && (*serv iswm $2 ) {
    if ( $active != $+(@,$2) ) {
      echo -a All $2 commands should be typed in the  $+(@,$2) Window! Please type: 12/ $+ $2 
      halt
    }
    else {
      .msg $2-
      halt
    }
  }
}