Fix for bug #421

git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8081 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2007-09-25 00:53:01 +00:00
parent 40acb5caee
commit 44700449e9

View File

@ -1066,6 +1066,13 @@ bool TreeSocket::ProcessLine(std::string &line)
}
}
this->LinkState = CONNECTED;
TreeServer* CheckDupe = Utils->FindServer(InboundServerName);
if (CheckDupe)
{
this->SendError("Server "+InboundServerName+" already exists!");
this->Instance->SNO->WriteToSnoMask('l',"Server \2"+InboundServerName+"\2 being introduced from \2" + prefix + "\2 denied, already exists. Closing link with " + prefix);
return false;
}
Link* lnk = Utils->FindLink(InboundServerName);
Node = new TreeServer(this->Utils,this->Instance, InboundServerName, InboundDescription, Utils->TreeRoot, this, lnk ? lnk->Hidden : false);
Utils->DelBurstingServer(this);