I wrote an addon, which halts displaying text. In a default mirc, it works correctly, but in scripts (for exapmle in extreme, noname script, etc.) it just won't work. It doesn't halt the text from displaying.

I use this kind of code:
on ^1:text:*:#: {
... commands ...
/halt
}

This .mrc file is the first in the order list in the script editor window.
How can I halt the script totally?