* have 928AAAB's nick set to that.
* -- w00t
*/
- this->WriteLine(std::string(":")+this->Instance->Config->ServerName+" SVSNICK "+remoteuid+" " + remoteuid);
+ userrec *remote = this->Instance->FindUUID(remoteuid);
+
+ if (remote)
+ {
+ /* buh.. nick change collide. force change their nick. */
+ remote->ForceNickChange(remote->uuid);
+ }
+ else
+ {
+ /* user has not been introduced yet, just inform their server */
+ this->WriteLine(std::string(":")+this->Instance->Config->ServerName+" SVSNICK "+remoteuid+" " + remoteuid);
+ }
if (!bChangeRemote)
return 2;
userrec* x = this->Instance->FindNick(params[0]);
if ((x) && (x != who))
{
+ /* x is local, who is remote */
+ this->DoCollision(x, who->age, who->ident, who->GetIPString(), who->uuid);
+ return true;
+/*
+Old nickname collision logic..
std::deque<std::string> p;
p.push_back(params[0]);
p.push_back(":Nickname collision ("+prefix+" -> "+params[0]+")");
userrec::QuitUser(this->Instance,y,"Nickname collision");
}
return Utils->DoOneToAllButSenderRaw(line,sourceserv,prefix,command,params);
+*/
}
}
// its a user