mIRC Homepage
Posted By: SnakeBite34 DCC initiation - 28/01/06 08:48 PM
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?
Posted By: NeUtRoN_StaR Re: DCC initiation - 28/01/06 09:14 PM
/help on FILESENT/FILERCVD
/help on OPEN/CLOSE

Posted By: DaveC Re: DCC initiation - 28/01/06 09:16 PM
/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),>))
Posted By: SnakeBite34 Re: DCC initiation - 28/01/06 09:43 PM
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
© mIRC Discussion Forums