]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/handshaketimer.cpp
Make mssql module compile, untested for now.
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / handshaketimer.cpp
index 1ccd466ad405afc9232b09cbb9e5dd96f0f29f72..b264a4c2fb242333ddc424f1404c23e54d39f4ec 100644 (file)
@@ -12,8 +12,6 @@
  */
 
 #include "inspircd.h"
-#include "commands/cmd_whois.h"
-#include "commands/cmd_stats.h"
 #include "socket.h"
 #include "xline.h"
 #include "../transport.h"
@@ -27,7 +25,8 @@
 
 /* $ModDep: m_spanningtree/main.h m_spanningtree/utils.h m_spanningtree/treeserver.h m_spanningtree/link.h m_spanningtree/treesocket.h */
 
-HandshakeTimer::HandshakeTimer(InspIRCd* Inst, TreeSocket* s, Link* l, SpanningTreeUtilities* u, int delay) : Timer(delay, Inst->Time(), true), Instance(Inst), sock(s), lnk(l), Utils(u)
+HandshakeTimer::HandshakeTimer(TreeSocket* s, Link* l, SpanningTreeUtilities* u, int delay)
+       : Timer(delay, ServerInstance->Time(), true), sock(s), lnk(l), Utils(u)
 {
        thefd = sock->GetFd();
 }
@@ -39,15 +38,15 @@ HandshakeTimer::~HandshakeTimer()
 
 void HandshakeTimer::Tick(time_t TIME)
 {
-       if (!sock->GetHook())
+       if (!sock->GetIOHook())
        {
                CancelRepeat();
                sock->SendCapabilities(1);
        }
-       else if (BufferedSocketHSCompleteRequest(sock, (Module*)Utils->Creator, sock->GetHook()).Send())
+       else if (BufferedSocketHSCompleteRequest(sock, Utils->Creator, sock->GetIOHook()).Send())
        {
                CancelRepeat();
-               BufferedSocketAttachCertRequest(sock, (Module*)Utils->Creator, sock->GetHook()).Send();
+               BufferedSocketAttachCertRequest(sock, Utils->Creator, sock->GetIOHook()).Send();
                sock->SendCapabilities(1);
        }
        // otherwise, try again later