$active returns the name of the active window, and when you have multiple windows with the same name then you are basically screwed.

When you have 3 dcc chat windows with the same person, then all of them return =<nick> for $active, so when doing $window($active).wid, it transforms to $window(=<nick>), which will always return the first of those 3 windows, even though the actually active one may be the third.


Gone.