diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-02 00:52:46 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-02 00:52:46 +0000 |
commit | e62516014fdbc13a0baf9b869b747300bfdccbc7 (patch) | |
tree | d16b926b9d7bd05f93c4ab90f9ea80cd2b78cc6e /src/modules/m_spanningtree/capab.cpp | |
parent | fe7ce903b838912a34de9e1530dd9ca45af5aed3 (diff) |
Add s2s backward compatability for protocol changes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11656 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree/capab.cpp')
-rw-r--r-- | src/modules/m_spanningtree/capab.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/capab.cpp b/src/modules/m_spanningtree/capab.cpp index ac97674f5..5b68ab4f9 100644 --- a/src/modules/m_spanningtree/capab.cpp +++ b/src/modules/m_spanningtree/capab.cpp @@ -217,10 +217,10 @@ bool TreeSocket::Capab(const parameterlist ¶ms) } else { - int otherProto = atoi(CapKeys.find("PROTOCOL")->second.c_str()); - if (otherProto < MinCompatProtocol) + proto_version = atoi(CapKeys.find("PROTOCOL")->second.c_str()); + if (proto_version < MinCompatProtocol) { - reason = "Server is using protocol version " + ConvToStr(otherProto) + + reason = "Server is using protocol version " + ConvToStr(proto_version) + " which is too old to link with this server (version " + ConvToStr(ProtocolVersion) + (ProtocolVersion != MinCompatProtocol ? ", links with " + ConvToStr(MinCompatProtocol) + " and above)" : ")"); } |