try just HALT instead of haltdef ..... also i think its a ctcp sending thats making ti do that . so it may have to be triggered by on ctcp insteadof on text