]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/handshaketimer.cpp
modulemanger: check dependencies correctly
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / handshaketimer.cpp
index 14b27472c1724f59222955d7e65f03ff6e156a4a..56f34283b72bdd5bc33ee4bf4b0892922e533bcd 100644 (file)
  */
 
 #include "inspircd.h"
-#include "commands/cmd_whois.h"
-#include "commands/cmd_stats.h"
 #include "socket.h"
 #include "xline.h"
-#include "transport.h"
+#include "../transport.h"
 
-#include "m_spanningtree/main.h"
-#include "m_spanningtree/utils.h"
-#include "m_spanningtree/treeserver.h"
-#include "m_spanningtree/link.h"
-#include "m_spanningtree/treesocket.h"
-#include "m_spanningtree/handshaketimer.h"
+#include "main.h"
+#include "utils.h"
+#include "treeserver.h"
+#include "link.h"
+#include "treesocket.h"
+#include "handshaketimer.h"
 
 /* $ModDep: m_spanningtree/main.h m_spanningtree/utils.h m_spanningtree/treeserver.h m_spanningtree/link.h m_spanningtree/treesocket.h */
 
@@ -42,13 +40,13 @@ void HandshakeTimer::Tick(time_t TIME)
        if (!sock->GetHook())
        {
                CancelRepeat();
-               sock->SendCapabilities();
+               sock->SendCapabilities(1);
        }
        else if (BufferedSocketHSCompleteRequest(sock, (Module*)Utils->Creator, sock->GetHook()).Send())
        {
                CancelRepeat();
                BufferedSocketAttachCertRequest(sock, (Module*)Utils->Creator, sock->GetHook()).Send();
-               sock->SendCapabilities();
+               sock->SendCapabilities(1);
        }
        // otherwise, try again later
 }