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
Moderator: Moderators
Additionally, you say it happens in Passive mode, does that mean it doesn't happen in Active mode?
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());Sedulus wrote:er.. I guessCode: 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());
should beCode: 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());
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);
}Users browsing this forum: Google [Bot] and 0 guests