On OPEN and Single Message Windows - 24/02/17 07:05 AM
On ^OPEN query doesn't work for triggering if the client uses Single Message Windows (aka Dedicated Query /dqwindow), unless the message is going to open its own query (nickname is in /notify list).
The behavior I expected was either one of 1) Trigger when the DQ window itself is about to be created, or 2) Trigger whenever nickname messages you for the first time so they can receive a welcoming introduction, their identity can be scrutinized, tallied or muted from ever appearing in the DQ window. IE: as if handling regular opening query windows from them.
Hard to say what the intended behavior should be. DQ window handling is rather tricky overall, especially when trying to /echo to the correct query window where their text appears in.
The behavior I expected was either one of 1) Trigger when the DQ window itself is about to be created, or 2) Trigger whenever nickname messages you for the first time so they can receive a welcoming introduction, their identity can be scrutinized, tallied or muted from ever appearing in the DQ window. IE: as if handling regular opening query windows from them.
Hard to say what the intended behavior should be. DQ window handling is rather tricky overall, especially when trying to /echo to the correct query window where their text appears in.
Code:
var %cmd if ($query($nick)) { var %cmd = echo -tic info $nick } elseif ($window(Message Window)) { var %cmd = echo -dtic info } else { return } ; message halted or shown in active window? %cmd * $nick is also in $comchanS($nick).