nope. $target returns your own nick when triggered from query windows. (though i have no idea as to why)

this example (a simplified version of what i use ) works fine for channels, doesn't work in query windows.

on ^*:TEXT:*:*: {
echo 14 $target $nick - $$1-
haltdef
}

in order to make $target work in a query window, i had to do this:

on ^*:TEXT:*:*: {
if ( $target == $me ) { echo 14 $nick $nick said: $$1 }
if ( $chan != $null ) { echo 14 $target $nick - $nick said: $$1 }
haltdef
}

two lines to do what should be the work of one.

i haven't experiemented with DCC chats much, so i don't know what wierdnesses may be involved there. i do know that, for some reason, i have to use ON CHAT instead of ON TEXT requiring yet MORE redundant code <grr>