mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 20:19:02 -04:00
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:
parent
40acb5caee
commit
44700449e9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user