dc++ private message?
Moderator: Moderators
dc++ private message?
Hey, does anyone know the (raw) command to send a private message to someone else through dc++... say my name is thedash and im sending "hello" to a user named abcdefg, what is the exact syntax for the command (as if im sending it from a connection through telnet)...???
i think its something like:
$To: abcdefg From: thedash $<thedash> heyy |
but that doesn't seem to be working...
i think its something like:
$To: abcdefg From: thedash $<thedash> heyy |
but that doesn't seem to be working...
-
- Forum Moderator
- Posts: 366
- Joined: 2004-03-06 02:46
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us
Thanks for the link to the Wiki site, it's been a big help...however i tried the suggested syntax on that site and for some reason its not working for me. Maybe i'm not logged in fully or something, but i connect, send the key and validatenick commands, it replies with hello, and then i try sending my:
$To: abcdefg From: thedash $<thedash> hey|
command...and it doesn't send...is there another command i have to give before i'm "fully logged in" and allowed to send messages ...or is my syntax incorrect?
$To: abcdefg From: thedash $<thedash> hey|
command...and it doesn't send...is there another command i have to give before i'm "fully logged in" and allowed to send messages ...or is my syntax incorrect?
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us
literally what im doing is opening telnet, connecting to the server on port 411, sending (the key doesn't matter on this server):
first...
$Key <1234>|
then...
$ValidateNick thedash|
then...
$To: abcdefg From: thedash $<thedash> hey|
thats literally what the script exactly sends in that order and that's all it sends. Am i missing some intermediary step?
first...
$Key <1234>|
then...
$ValidateNick thedash|
then...
$To: abcdefg From: thedash $<thedash> hey|
thats literally what the script exactly sends in that order and that's all it sends. Am i missing some intermediary step?
-
- Forum Moderator
- Posts: 366
- Joined: 2004-03-06 02:46
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us
Yeah, that's why it doesn't work.thedash wrote:Am i missing some intermediary step?
Take a look at this: http://wiki.dcpp.net/index.php/Client-Hub_Handshake
It is not set in stone, but if you follow that your program will probably start working.
Edit: please tell me you're not writing a bot to spam PMs.
hey, so yeah apparently i am missing the:
$Version <version>|$MyINFO <info string>|$GetNickList|
step. Can you please give me a full example $MyINFO string, because although that site has the syntax, it's hard to follow and i'm not sure how to split arguements etc, so an exact $MyINFO string i can use would be of great help. OH and is the version supposed to be the version number of the client or server or what exactly do i put in for <version> ??? (it also doesn't go into depth on this on the site)
PS: lol no i'm actually trying to make my own client but its not going too well [/list]
$Version <version>|$MyINFO <info string>|$GetNickList|
step. Can you please give me a full example $MyINFO string, because although that site has the syntax, it's hard to follow and i'm not sure how to split arguements etc, so an exact $MyINFO string i can use would be of great help. OH and is the version supposed to be the version number of the client or server or what exactly do i put in for <version> ??? (it also doesn't go into depth on this on the site)
PS: lol no i'm actually trying to make my own client but its not going too well [/list]
An example of MyINFO string:
$MyINFO $ALL thedash mp3, games<++V:0.668,M:A,H:1/0/0,S:4>$ $DSL$email-addr$sharesize$|
The $Version is nearly unused afaik, it is generally:
$Version 1,0091|
But most hubs won't let you in if you dont compute a $Key from the $Lock command, which is sent to you when you connect to the hub.
$MyINFO $ALL thedash mp3, games<++V:0.668,M:A,H:1/0/0,S:4>$ $DSL$email-addr$sharesize$|
The $Version is nearly unused afaik, it is generally:
$Version 1,0091|
But most hubs won't let you in if you dont compute a $Key from the $Lock command, which is sent to you when you connect to the hub.
My current HUB project: AdmiHUB 3
My previous project: Commander (a DC++ BOT)
My previous project: Commander (a DC++ BOT)
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us
It's not that hard, really. Look at the MyINFO page, and if it's unclear, post in the Talk page associated with it.thedash wrote:Can you please give me a full example $MyINFO string, because although that site has the syntax, it's hard to follow and i'm not sure how to split arguements etc, so an exact $MyINFO string i can use would be of great help.
If you want an exact MyINFO, capture one of your own with ethereal or tcpdump and use it. Both are an invaluable tool when you're programming and debugging...
This isn't right, since you're missing the status byte, at the very least.Admiral wrote:$MyINFO $ALL thedash mp3, games<++V:0.668,M:A,H:1/0/0,S:4>$ $DSL$email-addr$sharesize$|
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us