]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/configreader.h
Replace OnRehash() with ReadConfig() that is called on boot, on module load and on...
[user/henk/code/inspircd.git] / include / configreader.h
index 2aab0a075b10c9c878d609b2e03e6332a134583f..0fbf234c330b5c0a41856eb45d886c7eb266f9e7 100644 (file)
@@ -58,7 +58,7 @@ class CoreExport ConfigTag : public refcountbase
         * @param max Maximum acceptable value (optional)
         * @return The duration in seconds
         */
-       time_t getDuration(const std::string& key, time_t def = 0, long min = LONG_MIN, long max = LONG_MAX);
+       long getDuration(const std::string& key, long def = 0, long min = LONG_MIN, long max = LONG_MAX);
 
        /** Get the value of an option
         * @param key The option to get
@@ -614,3 +614,14 @@ class CoreExport ConfigReaderThread : public Thread
        void Finish();
        bool IsDone() { return done; }
 };
+
+class CoreExport ConfigStatus
+{
+ public:
+       User* const srcuser;
+
+       ConfigStatus(User* user = NULL)
+               : srcuser(user)
+       {
+       }
+};