aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/treesocket1.cpp
diff options
context:
space:
mode:
authorGravatar danieldg2009-09-02 00:52:54 +0000
committerGravatar danieldg2009-09-02 00:52:54 +0000
commit8ca460a0e660f7ac6bae4dfdc88680876fd899f5 (patch)
tree063df543e7d38449300588b54d00e4612250580e /src/modules/m_spanningtree/treesocket1.cpp
parentAdd s2s backward compatability for protocol changes (diff)
Add modules to the VF_COMMON list in backwards compatability link mode, translate FIDENT as CHGIDENT
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11657 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree/treesocket1.cpp')
-rw-r--r--src/modules/m_spanningtree/treesocket1.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/modules/m_spanningtree/treesocket1.cpp b/src/modules/m_spanningtree/treesocket1.cpp
index e77e6717e..f31685c01 100644
--- a/src/modules/m_spanningtree/treesocket1.cpp
+++ b/src/modules/m_spanningtree/treesocket1.cpp
@@ -41,9 +41,9 @@ TreeSocket::TreeSocket(SpanningTreeUtilities* Util, InspIRCd* SI, std::string sh
{
age = SI->Time();
myhost = ServerName;
- theirchallenge.clear();
- ourchallenge.clear();
- this->LinkState = CONNECTING;
+ capab_phase = 0;
+ proto_version = 0;
+ LinkState = CONNECTING;
Utils->timeoutlist[this] = std::pair<std::string, int>(ServerName, maxtime);
if (Hook)
BufferedSocketHookRequest(this, (Module*)Utils->Creator, Hook).Send();
@@ -58,10 +58,9 @@ TreeSocket::TreeSocket(SpanningTreeUtilities* Util, InspIRCd* SI, int newfd, cha
: BufferedSocket(SI, newfd, ip), Utils(Util), Hook(HookMod)
{
age = SI->Time();
- this->LinkState = WAIT_AUTH_1;
- theirchallenge.clear();
- ourchallenge.clear();
- sentcapab = false;
+ LinkState = WAIT_AUTH_1;
+ capab_phase = 0;
+ proto_version = 0;
/* If we have a transport module hooked to the parent, hook the same module to this
* socket, and set a timer waiting for handshake before we send CAPAB etc.
*/
@@ -127,7 +126,6 @@ bool TreeSocket::OnConnected()
x->Hook.c_str());
}
this->OutboundPass = x->SendPass;
- sentcapab = false;
/* found who we're supposed to be connecting to, send the neccessary gubbins. */
if (this->GetHook())
@@ -136,7 +134,7 @@ bool TreeSocket::OnConnected()
ServerInstance->Timers->AddTimer(hstimer);
}
else
- this->SendCapabilities();
+ this->SendCapabilities(1);
return true;
}