Seite 1 von 1

BeitragVerfasst: Sa 28. Jun 2008, 16:51
Author: taz
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

BeitragVerfasst: Sa 28. Jun 2008, 17:47
Author: WiZaRd
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).