Is there any way to determine which window an incoming message is destined for? I would have assumed $target was the answer, but it only seems to indicate the IRC server line's target, not the local client window target.
Examples:
If "[x] Use single message window" is enabled, $target in ON TEXT/ACTION:*:?: equals $me rather than "Message Window" ... even though the incoming message appears in the /dqwindow
If "Show in active: [x] Queries" is enabled, and if the #help channel window is active (focused), $target in ON TEXT/ACTION:*:?: equals $me, rather than "#help" ... even though the incoming message appears in #help
If Topic events are set to show In Status, then upon a topic change in #help, $target equals "#help" rather than "Status Window" ... even though that topic change appears in the status window.