summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 8cbd60ff5..55a38a353 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -6427,8 +6427,11 @@ void handle_plus(char token,char* params,serverrec* source,serverrec* reply, cha
{
if (!strcasecmp(me[i]->connectors[j].GetServerName().c_str(),servername))
{
- log(DEBUG,"Already got a connection to %s:%d, ignoring +",ipaddr,atoi(ipport));
- conn_already = true;
+ if (me[i]->connectors[j].GetServerPort() == atoi(ipport))
+ {
+ log(DEBUG,"Already got a connection to %s:%d, ignoring +",ipaddr,atoi(ipport));
+ conn_already = true;
+ }
}
}
}