on ^*:QUIT:{
var %quit $1-
there you get a variable called "quit", then you can use $len(%quit), and if %quit is longer then lets say 5 haltdef = dosent show, else show.
on ^*:QUIT:{
var %quit $1-
var %length $len(%quit)
if (%length => 5) { haltdef }
else {
}
}
untested so dosent know if it work

but try it and edit it, shouldent be that hard to get it to work as u want..