mIRC Home    About    Download    Register    News    Help

Print Thread
#189961 14/11/07 10:25 AM
Joined: Jan 2007
Posts: 34
C
cygnusx Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jan 2007
Posts: 34
I'm developing IRC client(not mIRC script) and want to add function for sending files into it.There is a explanation on the DCC protocol at this page I'm sending the following private message with my client "DCC SEND whatever 1566565459 1024 34",but the target client receive it like private message,not like request for receiving file over dcc.What's wrong?

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Just to play safe, you sent the $chr(127) / ascii 0127 as well?
PRIVMSG ClientB :<here>DCC SEND filename longip port filesize<and here>

if I send this line to myself in mIRC, the dcc get dialogue triggers:
//raw PRIVMSG $me :DCC SEND test.txt $longip($ip) 10 10
or
//PRIVMSG $me DCC SEND test.txt $longip($ip) 10 10

Last edited by Horstl; 14/11/07 10:48 AM.
Horstl #189966 14/11/07 12:04 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Maybe I missed something, but you wrote "$chr(127)" then used character 1 in your examples.

So, to avoid confusion: $chr(1) is correct and is used to distinguish CTCP messages from normal PRIVMSGs/NOTICEs.

Joined: Jan 2007
Posts: 34
C
cygnusx Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jan 2007
Posts: 34
Thank you both for answers.

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
my fault, used $asc(paste) on the wrong char blush

Horstl #190503 21/11/07 06:23 PM
Joined: Jan 2007
Posts: 34
C
cygnusx Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jan 2007
Posts: 34
One more question...when some client wants to send DCC request for sending file to other client,it must send a message according to the DCC protocol,but mIRC sends a message which violates the DCC protocol,isn't?Here is the raw message which mIRC sends PRIVMSG cygnusX :$chr(1)DCC SEND c1a3.HL3 4294967295 0 28 13$chr(1).
4294967295 is the IP address and 13 must be filesize,and 28 must be the port,then what's the 0?


Link Copied to Clipboard