I'm trying to figure out how you can change how error messages such as typing an incorrect command are displayed. I tried using the on *:Error event handler, but it doesnt seem to work for me. Basically I tried this

on *:ERROR:*: {
/msg $me $1-
haltdef
}

So it would msg myself the error message, because I'm running a bot, and my stauts screen gets flooded with a lot of stuff that it does, so when something goes wrong, I don't want to have to search for the errors, I'd like them to be msged to me so it will be a lot easier for me to look thourgh them. So when I use the above script and I type say... /sdkjfhskdjf, I wanted that unknown command error to be msged to me, but it doesnt work. Is that the wrong way to do it, or do you have to do it some other way? Thank for your help!