I think other modders might find this useful

It's been ages since I've used a mod or official without added leecher detection mechanism. Now while working on my "mod generator" (getting closure to adding CA) I've noticed that applying :
Xman's use ConnectIP instead of GetIP() at CClientList::AttachToAlreadyKnown (i.e. :
- Code: Alles auswählen
...
if (sender){
if (found_client->socket){
if (found_client->socket->IsConnected()
// Contrib - fix
// && (found_client->GetIP() != tocheck->GetIP() || found_client->GetUserPort() != tocheck->GetUserPort() ) )
&& (found_client->GetConnectIP() != tocheck->GetConnectIP() //Xman use ConnectIP instead of GetIP()
|| found_client->GetUserPort() != tocheck->GetUserPort() ) )
// <-------- fix
{
// if found_client is connected and has the IS_IDENTIFIED, it's safe to say that the other one is a bad guy
if (found_client->Credits() && found_client->Credits()->GetCurrentIdentState(found_client->GetIP()) == IS_IDENTIFIED){
if (thePrefs.GetLogBannedClients())
AddDebugLogLine(false, _T("Clients: %s (%s), Banreason: Userhash invalid"), tocheck->GetUserName(), ipstr(tocheck->GetConnectIP()));
...
results in banning a lot of AJ (and derived) as well as other leechers (identified as Nick thieves or via nick as probably unaware bad mods users via looking at verbose log).
If anyone finds this worth looking at - I've earned my 2 cents
