From 9577eca58c66acc260e3a5576ba8235812e14b6b Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 18 Apr 2004 22:31:34 +0000 Subject: Checks to stop a server connecting twice git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@659 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/connection.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/connection.cpp') diff --git a/src/connection.cpp b/src/connection.cpp index 2ab984332..357295245 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -166,6 +166,15 @@ bool connection::BeginLink(char* targethost, int port, char* password, char* ser char connect[MAXBUF]; ircd_connector connector; + ircd_connector *cn = this->FindServer(servername); + + + if (cn) + { + WriteOpers("CONNECT aborted: Server %s already exists from %s",servername,ServerName); + return false; + } + if (this->fd) { -- cgit v1.3.1-10-gc9f91