on *:text:*:*:{
if ($chan != $null) { .signal -n TEXT_CHAN $1- }
}
on *:signal:TEXT_CHAN:{ echo -a $signal -- $nick -- $chan }
Results: TEXT_CHAN -- SomeNick -- $null
Try this code out... Of couse not using the '-n' with signal would result in $chan and $nick being null... But with the '-n' option $chan is $null, $nick is still $nick from :text:
yes, just noticed that today... I think signal should be more generic, in that they retain the identifers of the "parent" event, since mirc never calls a singal without a script saying to do so...
That would limit the scope of where a signal could be called from, and still do the same processing, its far more advantages to simply pass the needed values by command line, or global variables.