]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/treesocket1.cpp
Make VF_OPTCOMMON module mismatches a fatal link error by default
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / treesocket1.cpp
index 46f2657ff7fb7c71e715b6284a40c4ff68447a8b..e77e6717e6fea4ec5ad07eaa5fb941a5367f6952 100644 (file)
@@ -39,6 +39,7 @@
 TreeSocket::TreeSocket(SpanningTreeUtilities* Util, InspIRCd* SI, std::string shost, int iport, unsigned long maxtime, const std::string &ServerName, const std::string &bindto, Module* HookMod)
        : BufferedSocket(SI, shost, iport, maxtime, bindto), Utils(Util), Hook(HookMod)
 {
+       age = SI->Time();
        myhost = ServerName;
        theirchallenge.clear();
        ourchallenge.clear();
@@ -56,6 +57,7 @@ TreeSocket::TreeSocket(SpanningTreeUtilities* Util, InspIRCd* SI, std::string sh
 TreeSocket::TreeSocket(SpanningTreeUtilities* Util, InspIRCd* SI, int newfd, char* ip, Module* HookMod)
        : BufferedSocket(SI, newfd, ip), Utils(Util), Hook(HookMod)
 {
+       age = SI->Time();
        this->LinkState = WAIT_AUTH_1;
        theirchallenge.clear();
        ourchallenge.clear();
@@ -86,6 +88,7 @@ Module* TreeSocket::GetHook()
 void TreeSocket::CleanNegotiationInfo()
 {
        ModuleList.clear();
+       OptModuleList.clear();
        CapKeys.clear();
        ourchallenge.clear();
        theirchallenge.clear();