_Added in 1.8.10_ *$target* Returns the target window for an [[Scripting_Events|event]. _#channel/nick/Status Window_ *Example*
; Print target window for a new incoming message.
on *:TEXT:*:*:echo -ag Target window is $target