]> 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 ee58c3bc9232502f3c807f02b39b66b9bb0fed8e..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
@@ -507,11 +507,14 @@ class CoreExport ServerConfig
         */
        bool FullHostInTopic;
 
-       /** Oper block and type index.
-        * For anonymous oper blocks (type only), prefix with a space.
+       /** Oper blocks keyed by their name
         */
        OperIndex oper_blocks;
 
+       /** Oper types keyed by their name
+        */
+       OperIndex OperTypes;
+
        /** Max channels per user
         */
        unsigned int MaxChans;
@@ -611,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)
+       {
+       }
+};