It is my understand that $target does not distinguish between DCC Chat, Fserve & Query. So it can not be used efficiently within $window().type

What i wish to be able to do is refer to the location type within an event. $window().type half works.

on ^*:TEXT:*:*: { echo -a $window($target).type }

Will correctly return 'channel' for text in a channel, but will give '* /echo: insufficient parameters' for text that is in a query, and will do absolutely nothing for a DCC or fserve window.

on TEXT

The location where the event occurrs can be specified using:

? for any private message
# for any channel message
#mirc for any messages on channel #mirc
* for any private or channel messages

What i am suggesting $location do is return the location type in the simplest format, that is: ? # = ! @ according to where the event was triggered.
Alternatively i guess the $target and $window().type procedures could be improved to work correctly together and define properly between types when used within an event.


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby