]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/inspircd.h
Improve support for wildcards in <link:name>.
[user/henk/code/inspircd.git] / include / inspircd.h
index 8ca2314eb4082319d09b9640f070796581f8d5df..0de64b103c25757ff446e0c56d66a71a7ad21e10 100644 (file)
@@ -284,7 +284,7 @@ class CoreExport InspIRCd
         */
        TimerManager Timers;
 
-       /** X-Line manager. Handles G/K/Q/E line setting, removal and matching
+       /** X-line manager. Handles G/K/Q/E-line setting, removal and matching
         */
        XLineManager* XLines;
 
@@ -516,6 +516,12 @@ class CoreExport InspIRCd
         */
        static bool IsValidDuration(const std::string& str);
 
+       /** Return a duration in seconds as a human-readable string.
+        * @param duration The duration in seconds to convert to a human-readable string.
+        * @return A string representing the given duration.
+        */
+       static std::string DurationString(time_t duration);
+
        /** Attempt to compare a password to a string from the config file.
         * This will be passed to handling modules which will compare the data
         * against possible hashed equivalents in the input string.