diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-18 22:31:34 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-18 22:31:34 +0000 |
commit | 9577eca58c66acc260e3a5576ba8235812e14b6b (patch) | |
tree | 07ccb4c61bf4430799fcef844b8b79885dbc4212 /src/connection.cpp | |
parent | 69b414c69ce04ba91eac5754e418a816bcf4f403 (diff) |
Checks to stop a server connecting twice
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@659 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/connection.cpp')
-rw-r--r-- | src/connection.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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) { |