No idea why that didnt work, maybe the dcc send is corrupt, try this then report what info is returned.

CTCP *:DCC SEND*:?:{ echo -at ATTENTION: $nick is sending you a file called $nopath($filename) from $longip($getok($1-,-3,32)) ip. ... RAWDATA $1- }