There is no distinct event to cover this. What in detail are you trying to do?
You could try "on open" as, if I remember correctly, "on close" works for status windows, like in
on *:CLOSE:status window: { echo -a just closed $target of connection id $cid }
I cannot test myself atm - sorry.
@chacha: You can open a new status window without connecting and vice versa.
Last edited by Horstl; 24/05/10 07:56 PM.