ON TEXT and ON ACTION can be set to trigger from windows of all types with the * setting.

if the trigger happened to be in a channel, one can use $chan to perform actions aimed at that channel. however, if the trigger happens to be from a query window or dcc chat, $chan doesn't work. i'm not even sure if there is an equivalent for them.

ideally, there should be a single identifier (say: $source) that would identify the triggering window, regardless of type, so that, for example, we could direct echos or the like back to it easily without having to write a bunch of extra code for it. there should also be a simple identifier (say: $sourcetype) that would just return whether the source was a query window, channel window or whatever.

i'm using ON TEXT and ON ACTION primarily to redo the way dialogue in channels/chats is displayed, and while i've managed to get ON TEXT to work universally, it has some odd side effects (like everything going on in query windows being echoed to both the query window and the status window for some insane reason) and i haven't managed to get the ON ACTION to work at all in chat windows.

i have got to figure that other people are using similar (though probably better developed) workarounds.

ideally, i would love to have something like "/echo 4 $source Hello!" work identcally in ON TEXT and ON ACTION triggers from any server, channel, query and/or DCC chat window.


Last edited by Nekomusume; 14/10/03 08:39 AM.