From 195b60fe903ec3dff471a43af45236fa122171b9 Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 21 Apr 2009 15:15:05 +0000 Subject: Abort link early when mismatched modules are detected so that the error message is more useful git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11323 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/capab.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_spanningtree/capab.cpp b/src/modules/m_spanningtree/capab.cpp index d168a79bf..d363f31c1 100644 --- a/src/modules/m_spanningtree/capab.cpp +++ b/src/modules/m_spanningtree/capab.cpp @@ -171,8 +171,9 @@ bool TreeSocket::Capab(const std::deque ¶ms) if (diffUneed.length()) reason += " Not loaded there:" + diffUneed; } + this->SendError("CAPAB negotiation failed: "+reason); + return false; } - if (((this->CapKeys.find("IP6SUPPORT") == this->CapKeys.end()) && (ip6support)) || ((this->CapKeys.find("IP6SUPPORT") != this->CapKeys.end()) && (this->CapKeys.find("IP6SUPPORT")->second != ConvToStr(ip6support)))) reason = "We don't both support linking to IPV6 servers"; if (((this->CapKeys.find("IP6NATIVE") != this->CapKeys.end()) && (this->CapKeys.find("IP6NATIVE")->second == "1")) && (!ip6support)) -- cgit v1.2.3