As long as the channel window is open you can refer to it by using $chan(n) where n indicates the window number. $chan(0) gives you the number of open channel windows. Maybe that will help?

EDIT: you can also use $chan(#channelname).status to see whether the window is still open.

Last edited by noMen; 05/10/07 09:02 PM.