summaryrefslogtreecommitdiff
path: root/src/connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/connection.cpp')
-rw-r--r--src/connection.cpp9
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)
{