]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/inspircd.h
Use binary comparison of IP addresses when checking reverse/forward DNS match; fixes...
[user/henk/code/inspircd.git] / include / inspircd.h
index f32a676444e6cc4ee72b601afd51f0cebb300d88..987272752dc9a603bfb1d2d3196858d282fa723c 100644 (file)
@@ -43,6 +43,7 @@
 #include <cmath>
 #include <cstring>
 #include <climits>
+#include <cstdio>
 
 #include <sstream>
 #include <string>
@@ -290,9 +291,11 @@ class CoreExport ConfigReaderThread : public Thread
 {
        InspIRCd* ServerInstance;
        bool do_bail;
+       bool done;
        std::string TheUserUID;
  public:
-       ConfigReaderThread(InspIRCd* Instance, bool bail, const std::string &useruid) : Thread(), ServerInstance(Instance), do_bail(bail), TheUserUID(useruid)
+       ConfigReaderThread(InspIRCd* Instance, bool bail, const std::string &useruid)
+               : Thread(), ServerInstance(Instance), do_bail(bail), done(false), TheUserUID(useruid)
        {
        }
 
@@ -301,6 +304,7 @@ class CoreExport ConfigReaderThread : public Thread
        }
 
        void Run();
+       bool IsDone() { return done; }
 };
 
 /** The main class of the irc server.
@@ -397,8 +401,6 @@ class CoreExport InspIRCd : public classbase
         */
        std::map<BufferedSocket*,BufferedSocket*> SocketCull;
 
-       Mutex RehashFinishMutex;
-
        /** Globally accessible fake user record. This is used to force mode changes etc across s2s, etc.. bit ugly, but.. better than how this was done in 1.1
         * Reason for it:
         * kludge alert!