<- :rand!rand@qwest.net NOTICE r[a]nd

CC Send #test.log (67.1.101.180)
^ that is irrelevant and can also have a incorrect IP in it, because of how some peoples systems work.
<- :rand!rand@qwest.net PRIVMSG r[a]nd :DCC SEND #test.log 1124165044 1028 755258
^capture with ...
CTCP ^*:DCC SEND *:?:{
tokenize 62 $1 $+ > $+ $2 $+ > $+ $nopath($filename) $+ > $+ $gettok($1-,-3,32) $+ > $+ $gettok($1-,-2,32) $+ > $+ $gettok($1-,-1,32)
;$1 = DCC
;$2 = SEND
;$3 = filename
;$4 = longIP (see $longip)
;$5 = port
;$6 = filesize
}
The tokenize well fix any problem with files with spaces in it groups the whole filename spaces an all into $3 (and removes any surrounding " ")