]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/utils.h
Enable the LINK snomask from m_spanningtree, remove unused FLOOD snomask
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / utils.h
index f67a0d3c105526674ca7782919082d2228c1609f..1048e1c870b6cfdee887c388a0693a827d461d3c 100644 (file)
@@ -23,6 +23,7 @@
 #pragma once
 
 #include "inspircd.h"
+#include "cachetimer.h"
 
 /* Foward declarations */
 class TreeServer;
@@ -35,7 +36,7 @@ class SpanningTreeUtilities;
 /* This hash_map holds the hash equivalent of the server
  * tree, used for rapid linear lookups.
  */
-typedef std::tr1::unordered_map<std::string, TreeServer*, std::tr1::insensitive, irc::StrHashComp> server_hash;
+typedef TR1NS::unordered_map<std::string, TreeServer*, irc::insensitive, irc::StrHashComp> server_hash;
 
 typedef std::set<TreeServer*> TreeServerList;
 
@@ -48,6 +49,8 @@ class SpanningTreeUtilities : public classbase
         */
        std::string ConstructLine(const std::string& prefix, const std::string& command, const parameterlist& params);
 
+       CacheRefreshTimer RefreshTimer;
+
  public:
        /** Creator module
         */
@@ -87,9 +90,6 @@ class SpanningTreeUtilities : public classbase
        /** Hash of currently known server ids
         */
        server_hash sidlist;
-       /** Hash of servers currently bursting but not initialized as connected
-        */
-       std::map<irc::string,TreeSocket*> burstingserverlist;
        /** List of all outgoing sockets and their timeouts
         */
        std::map<TreeSocket*, std::pair<std::string, int> > timeoutlist;
@@ -124,7 +124,7 @@ class SpanningTreeUtilities : public classbase
         */
        ~SpanningTreeUtilities();
 
-       void RouteCommand(TreeServer*, const std::string&, const parameterlist&, User*);
+       void RouteCommand(TreeServer*, Command*, const parameterlist&, User*);
 
        /** Send a message from this server to one other local or remote
         */