on open always worked for queries/dcc(server) only as far as i know (i didn t upgrade mirc yet, so not sure about 6.1) ..and on close always worked for custom windows and status etc too..
..not sure what you need it for but maye use on dis/connect.
Well it´s something I am doing for my switchbar. I can get around this by using the on active sinse when you use the server -m the active window becomes the new status window.