Question about DC++ code

Asked by Jonathan Sanders

Can someone tell me where I can find the code that creates the tag (++tag). I have done searches, but not finding what I'm looking for.

Question information

Language:
English Edit question
Status:
Solved
For:
DC++ Edit question
Assignee:
No assignee Edit question
Solved by:
Jonathan Sanders
Solved:
Last query:
Last reply:
Revision history for this message
iceman50 (bdcdevel) said :
#1

No. A question like this is, in short, stupid, we will not help you make a '1337' tag hack, obviously if you knew anything about C++ you would be able to find it and would perhaps overlook it to add something more meaningful to DC++ then modifying a tag...

Revision history for this message
Jonathan Sanders (crazytown292007) said :
#2

You don't have to act so offended. If you don't know the answer, there is no need to make up elaborate accusations to hide it.

In case you want the code and just don't know how to do it, here it is:

In NmdcHub.cpp find the following line in void NmdcHub::myInfo(bool alwaysSend):

string myInfoB = tmp4 + Util::toString(SETTING(SLOTS));

and replace it with:

string myInfoB = tmp4 + Util::toString(SETTING(SLOTS))+"/"+uploadSpeed+"/"+downloadSpeed;

Before that block put the following:

string uploadSpeed;
int upLimit = ThrottleManager::getInstance()->getUpLimit();
if (upLimit > 0) {
uploadSpeed = Util::toString(upLimit);
} else {
uploadSpeed = SETTING(UPLOAD_SPEED);
}

    string downloadSpeed;
  int downLimit = ThrottleManager::getInstance()->getDownLimit();
if (downLimit > 0) {
downloadSpeed = Util::toString(downLimit);
} else {
downloadSpeed = SETTING(UPLOAD_SPEED);
}

Now you know the answer in case someone else ever asks in the future.