Skip to content

Commit

Permalink
Abort link early when mismatched modules are detected so that the err…
Browse files Browse the repository at this point in the history
…or message is more useful

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11323 e03df62e-2008-0410-955e-edbf42e46eb7
  • Loading branch information
danieldg committed Apr 21, 2009
1 parent e10bc5d commit 195b60f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/m_spanningtree/capab.cpp
Expand Up @@ -171,8 +171,9 @@ bool TreeSocket::Capab(const std::deque<std::string> &params)
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))
Expand Down

0 comments on commit 195b60f

Please sign in to comment.