Sub Menu
Suche

Last Online
In order to view the online list you have to be registered and logged in.



We are a free and open
community, all are welcome.

Click here to Register

No PowerShare for bad guys

BeitragAuthor: taz » Sa 28. Jun 2008, 16:51

Since PowerShared files downloading sort of enables jump ahead with our queue I figure some clients ( Bild ) do not deserve it Bild

@UploadClient.cpp

Code: Alles auswählen
// Contrib - PowerShare
//>>> WiZaRd::PowerShare
bool CUpDownClient::IsPowerShared() const
{

// By Taz - no PowerShare for leechers
#ifdef CLIENTANALYZER
    if    (GetAntiLeechData() && GetAntiLeechData()->GetBadForThisSession(0xff))
        return false;
#endif
// <------- no PowerShare for leechers
...


@CUploadQueue::FindBestClientInQueue

Code: Alles auswählen
...
//>>> WiZaRd::PowerShare

// By Taz - no PowerShare for leechers
#ifdef CLIENTANALYZER
        if (file->IsPowerShared() && (cur_client->GetAntiLeechData() && !cur_client->GetAntiLeechData()->GetBadForThisSession(0xff)))
#else
// <------- no PowerShare for leechers

        if(file->IsPowerShared())
#endif

        {
...


& @CUploadQueue::AddClientToQueue
Code: Alles auswählen
...
//>>> WiZaRd::PowerShare

// By Taz - no PowerShare for leechers
#ifdef CLIENTANALYZER
            !(reqfile->IsPowerShared() && (client->GetAntiLeechData() && !client->GetAntiLeechData()->GetBadForThisSession(0xff))) &&
#else
// <------- no PowerShare for leechers

            !reqfile->IsPowerShared() && //>>> WiZaRd::PowerShare
#endif
//<<< WiZaRd::PowerShare
// <-------- PowerShare

...


Bild
SharkX modder - less " free meals" only a CLICK away !
Requests for additional / changed features HERE Next version changelog
Benutzeravatar
taz
Stammgast
 
Beiträge: 438
Registriert: Do 29. Mär 2007, 07:30
Wohnort: Israel

BeitragAuthor: WiZaRd » Sa 28. Jun 2008, 17:47

This is idiocy!
If someone uses PS then he wants to spread his files and it does not matter to whom he uploads... besides leechers will be put back even with PS enabled...

Ah and PS: use the defines (better style).
Bild

... 9 von 10 Stimmen im meinem Kopf sagen ich bin nicht verrückt... - die 10te summt die Melodie von TETRIS
Benutzeravatar
WiZaRd
Forenlegende
 
Beiträge: 3805
Registriert: Fr 7. Jan 2005, 19:28
Wohnort: The Realm of Magic


Zurück zu Entwicklung

Wer ist online?

Mitglieder: Bing [Bot]

cron