Hi together,
i found a little Problem @ all newer DC++ than 0.403.
If a Nick take a char like ä ü ö ß ... AND the User is PASSIV, the char is send to Hub as 2 chars. the user directly disconnect from hub.
i hope this error will be correct.
Sky
Passive Search and Special chars in Nick = disconnect
Moderator: Moderators
Hi Todi,
- 0.666 has the same problem with the chars, that before
You can test it with diffenrent Hubsoft.
The problem is under DH-Hub / NMDC-Hubsoft 1 tested.
In the "stable" release 0.4034 the errors with the special chars in the Nick and also in Queue.xml.
In the 0.666 the errors dosen't exist any more in the queuefile, only in Nick the problem does exist.
example active search => $Search 64.78.55.32:412 T?T?500000?1?*removed*
in passiv you send the nick to and the hub searchs for you.
example passive => $Search Hub:NickName T?T?500000?1?*removed*
constain now the nick an special char an you'll in a closed Hub you'll disconnecting because Name doesen't match.
ä => ä
ü => ü
ö => ö
ß => ß
thats what i found in Filelist (0.403 1..) and in Nick. after 0.403.
Sky
- 0.666 has the same problem with the chars, that before
You can test it with diffenrent Hubsoft.
The problem is under DH-Hub / NMDC-Hubsoft 1 tested.
In the "stable" release 0.4034 the errors with the special chars in the Nick and also in Queue.xml.
In the 0.666 the errors dosen't exist any more in the queuefile, only in Nick the problem does exist.
that's right, because in active mode the client sends the IP to hubsoft.......Additionally, you say it happens in Passive mode, does that mean it doesn't happen in Active mode?
example active search => $Search 64.78.55.32:412 T?T?500000?1?*removed*
in passiv you send the nick to and the hub searchs for you.
example passive => $Search Hub:NickName T?T?500000?1?*removed*
constain now the nick an special char an you'll in a closed Hub you'll disconnecting because Name doesen't match.
ä => ä
ü => ü
ö => ö
ß => ß
thats what i found in Filelist (0.403 1..) and in Nick. after 0.403.
Sky
er.. I guess
should be
Code: Select all
chars = sprintf(buf, "$Search Hub:%s %c?%c?%s?%d?%s|", getNick().c_str(), c1, c2, Util::toString(aSize).c_str(), aFileType+1, tmp.c_str());
Code: Select all
chars = sprintf(buf, "$Search Hub:%s %c?%c?%s?%d?%s|", toNmdc(getNick()).c_str(), c1, c2, Util::toString(aSize).c_str(), aFileType+1, tmp.c_str());
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)
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)
Hi Sedulus,Sedulus wrote:er.. I guessshould beCode: Select all
chars = sprintf(buf, "$Search Hub:%s %c?%c?%s?%d?%s|", getNick().c_str(), c1, c2, Util::toString(aSize).c_str(), aFileType+1, tmp.c_str());
Code: Select all
chars = sprintf(buf, "$Search Hub:%s %c?%c?%s?%d?%s|", toNmdc(getNick()).c_str(), c1, c2, Util::toString(aSize).c_str(), aFileType+1, tmp.c_str());
thanks really for this idea
i'll found a way to fix the Error from 0.403x to 0.666
here my way to fix the problem in the nmdc.cpp
Code: Select all
//DC new by BlueSky©
string NickName = toNmdc(checkNick(getNick());
//DC new by BlueSky©
buf = new char[getNick().length() + aString.length() + 64];
chars = sprintf(buf, "$Search Hub:%s %c?%c?%s?%d?%s|", NickName.c_str(), c1, c2, Util::toString(aSize).c_str(), aFileType+1, tmp.c_str());
}
send(buf, chars);
}
@arne, this could be the way to fix this problem
Sky