I like to keep the last CHAT window between my system and a remote open at all times. However, when the remote system changes IP, the old CHAT window is not reused. Instead a new CHAT window is create. Hence for remote systems with dynaimc IPs, I start accumulating inactive CHAT windows.
In an attempt to prevent this, I tried to use on 1:OPEN:= to spin through $chat($nick,%i).status and $chat($nick,%i).wid to close all inactive windows tied to the earlier IP for $nick. But I was not able to figure out how to close a window when the only unique qualifer I have to it is .wid. /windows does not accept $wid as an argument.