]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/main.h
Allow multiple autoconnects in a single <autoconnect> tag, fix infinite failover
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / main.h
index 6e3f620565bfaafb173ec99578bcce6668b6860b..fc3392e264b2b42e8c50003fc3190244c3841a1a 100644 (file)
@@ -124,7 +124,11 @@ class ModuleSpanningTree : public Module
 
        /** Connect a server locally
         */
-       void ConnectServer(Link* x, Autoconnect* y);
+       void ConnectServer(Link* x, Autoconnect* y = NULL);
+
+       /** Connect the next autoconnect server
+        */
+       void ConnectServer(Autoconnect* y);
 
        /** Check if any servers are due to be autoconnected
         */
@@ -191,7 +195,7 @@ class ModuleSpanningTree : public Module
        void OnEvent(Event* event);
        void OnLoadModule(Module* mod,const std::string &name);
        void OnUnloadModule(Module* mod,const std::string &name);
-       void cull();
+       bool cull();
        ~ModuleSpanningTree();
        Version GetVersion();
        void Prioritize();