You don't have to put "NICK HERE." Just do:
on :TEXT:$( $+ $mnick $+ )::{
Or use $me
Though I'd recommend the use of regex for this.
And may I ask why all the halts?
I'm a little confused as to what it actually does too.