On text isn't really what you would use, to halt the opening of a query window, you would use /halt inside an on open event, with the '^' event prefix.
That said, you might want to check out the dedicated query window feature, which put all query messages inside one single window, type "/dqwindow on" to enable it.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel