From 8ca460a0e660f7ac6bae4dfdc88680876fd899f5 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 2 Sep 2009 00:52:54 +0000 Subject: 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 --- src/modules/m_spanningtree/treesocket1.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'src/modules/m_spanningtree/treesocket1.cpp') 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(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; } -- cgit v1.3.1-10-gc9f91