]> 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 f5c7dbafba02ca2f31981aa9e40b4111a583b1bf..0de64b103c25757ff446e0c56d66a71a7ad21e10 100644 (file)
@@ -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.