Direct Connect Hub Bot Problems With PtokaX Hub

Technical discussion about the NMDC and <a href="http://dcpp.net/ADC.html">ADC</A> protocol. The NMDC protocol is documented in the <a href="http://dcpp.net/wiki/">Wiki</a>, so feel free to refer to it.

Moderator: Moderators

Locked
Brian
Posts: 31
Joined: 2003-04-04 13:28
Location: Ontario, Canada
Contact:

Direct Connect Hub Bot Problems With PtokaX Hub

Post by Brian » 2003-04-07 17:18

I'm having a few problems with my bot for DC Hub's

It wont speak or pm or use the op commands and when it does it gets disconnected any reasons why?

TasMan
Posts: 196
Joined: 2003-01-03 08:31
Location: Canada
Contact:

Post by TasMan » 2003-04-07 17:34

I also found this problem when coding my client. I figured it out though.

It has to do with the ordering of messages sent to the hub. I used to send it this way (this is in response to "$Hello <youname>|" by the way) :

Code: Select all

  $MyINFO $ALL ...|
  $Version ...|
  $GetNickList|
but only this will work :

Code: Select all

  $Version ...|
  $GetNickList|
  $MyINFO $ALL ...|
After that, everything works fine it seems.
Shadows Direct Connect Hub - Taking away the light from NMDCH, leaving only shadows.....

Sedulus
Forum Moderator
Posts: 687
Joined: 2003-01-04 09:32
Contact:

Post by Sedulus » 2003-04-07 19:33

the GetNickList is usually not necessary,
and may be sent in any order after Version|MyINFO if I'm not mistaken

note that some hubs (notable Scorze) only accept known Connection Type strings in the MyINFO string.
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)

HaArD
Posts: 147
Joined: 2003-01-04 02:20
Location: Canada http://hub-link.sf.net
Contact:

Post by HaArD » 2003-04-07 21:12

PtokaX has very strict enforcement of client logon messages.

See this thread where the hubs author explained it himself....

Image

Brian
Posts: 31
Joined: 2003-04-04 13:28
Location: Ontario, Canada
Contact:

Post by Brian » 2003-04-07 22:13

thanks it worked perfectly

Brian
Posts: 31
Joined: 2003-04-04 13:28
Location: Ontario, Canada
Contact:

Post by Brian » 2003-04-07 22:20

Is there anyway to perm ban an IP with an external bot? If so i'd like to know how

Locked