]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/utils.h
Fix m_spanningtree sending the wrong setter in S2S ADDLINE.
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / utils.h
index 92a03428f16898331508c6a52047a8e626f58dfc..5559b3459b5defe2b1942a618f6077acacd7b7c9 100644 (file)
@@ -50,6 +50,8 @@ typedef std::map<TreeServer*,TreeServer*> TreeServerList;
 class SpanningTreeUtilities : public classbase
 {
  public:
+       typedef std::map<TreeSocket*, std::pair<std::string, int> > TimeoutList;
+
        /** Creator module
         */
        ModuleSpanningTree* Creator;
@@ -90,7 +92,7 @@ class SpanningTreeUtilities : public classbase
        server_hash sidlist;
        /** List of all outgoing sockets and their timeouts
         */
-       std::map<TreeSocket*, std::pair<std::string, int> > timeoutlist;
+       TimeoutList timeoutlist;
        /** Holds the data from the <link> tags in the conf
         */
        std::vector<reference<Link> > LinkBlocks;
@@ -171,6 +173,11 @@ class SpanningTreeUtilities : public classbase
        /** Refresh the IP cache used for allowing inbound connections
         */
        void RefreshIPCache();
+
+       /** Recreate serverlist and sidlist, this is needed because of m_nationalchars changing
+        * national_case_insensitive_map which is used by the hash function
+        */
+       void Rehash();
 };
 
 #endif