I tried looking for an event on dcc initiations but couldn't find any (one when someone else tries to initiate a dcc send with you). I also tried fiddling around with RAW and tried return a number and testing with dcc but couldn't get anything out of that either. Is there a way to get an event for someone trying to send you a file?
/help on FILESENT/FILERCVD
/help on OPEN/CLOSE
/help CTCP
CTCP *:DCC SEND *:?:{ code here }
$1- is the line passed, there is also $nick and $filename on offer as well.
--edit--
$1 = DCC SEND filename 32bitIP port filesize
a warning on that filename may contain spaces so maybe more than one $n value
I fix this using
tokenize 62 $+(DCC>SEND>,$filename,>,$replace($gettok($1-,-3-,32),$chr(32),>))
Oh, I didn't know it was a ctcp call. Thanks.
-edit
I tried testing this by having it echo the contents:
CTCP *:DCC SEND *:?:echo -s $1-
It didn't seem to work somehow (Note I have no other ctcp events)
edit2-
god I'm stupid
Forget anything I just said. No wonder ctcp tests didn't work yesterday, someone in the house set ctcps off O_O