Well its awsome but i kinda found a bug?
Well i'm not really sure if this bug is by your fault or by mine fault from some other code or whatever but my mIRC stop Responding, tried to Ctrl + Break but didn't work
That happend on a query of your script..
http://proicons.lostid.net/xasd.png
I also tried after this stuck to recreat the circumstances that lead to this hang, and i typed in the search area, the word $lasoz, again it hanged. Check it up..