mIRC Home    About    Download    Register    News    Help

Print Thread
#140715 28/01/06 08:48 PM
Joined: Aug 2005
Posts: 30
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Aug 2005
Posts: 30
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?

#140716 28/01/06 09:14 PM
Joined: Mar 2005
Posts: 212
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
/help on FILESENT/FILERCVD
/help on OPEN/CLOSE


Last edited by NeUtRoN_StaR; 28/01/06 09:15 PM.
#140717 28/01/06 09:16 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
/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),>))

Last edited by DaveC; 28/01/06 09:24 PM.
#140718 28/01/06 09:43 PM
Joined: Aug 2005
Posts: 30
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Aug 2005
Posts: 30
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

Last edited by SnakeBite34; 28/01/06 09:50 PM.

Link Copied to Clipboard