- log(DEBUG,"Nick collision on %s!%s@%s",tempnick,ident.c_str(),host.c_str());
- if (age <= iter->second->age)
- {
- // remote client is older
- // if hosts are identical, kill the remote,
- // else kill the local. We must send KILL for
- // removal of remote users.
- if (!strcmp(iter->second->host,host.c_str()))
- {
- // kill the remote by sending KILL,
- // and ABORT to stop it being introduced here.
- log(DEBUG,"**** LOCATION ONE");
- this->WriteLine(":"+Srv->GetServerName()+" KILL "+tempnick+" :Killed (Nickname collision from "+Srv->GetServerName()+")");
- return true;
- }
- else
- {
- log(DEBUG,"*** LOCATION TWO");
- // kill our local and continue to let the remote be introduced
- Srv->QuitUser(iter->second,"Killed (Nickname collision from "+source+")");
- }
- }
- else
- {
- log(DEBUG,"*** LOCATION THREE");
- // remote is newer, kill it and bail to stop it being introduced
- this->WriteLine(":"+Srv->GetServerName()+" KILL "+tempnick+" :Killed (Nickname collision from "+Srv->GetServerName()+")");
- return true;
- }
+ log(DEBUG,"Nick collision on %s!%s@%s: %lu %lu",tempnick,ident.c_str(),host.c_str(),(unsigned long)age,(unsigned long)iter->second->age);
+ this->WriteLine(":"+Srv->GetServerName()+" KILL "+tempnick+" :Nickname collision");
+ return true;