Hey, thanks for the help!
Let's forget about point # 1 for a moment.
I put this in mIRC
ON *: QUIT: {
if ($ query ($ nick) .cid == $ cid) {window -g1 $ nick | echo $ nick Note: $ nick has quit $ network at $ asctime}
}
And I did the test: I entered with a second nick from the browser and opened a query, but it didn't work: when the nick disconnected in the query window nothing happened, it didn't blink, it didn't come out of another color, nothing. What can it be?