]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/inspircd.h
Add formatting to InspIRCd::TimeString; switch all code to use it.
[user/henk/code/inspircd.git] / include / inspircd.h
index 3909b1328d2863f748fd9c3e80db2f3fa9a30ba4..1b1543e28dd661dd87053f8f314b6c8c558b5b7a 100644 (file)
@@ -397,7 +397,7 @@ class CoreExport InspIRCd
 
        /** User manager. Various methods and data associated with users.
         */
-       UserManager *Users;
+       UserManager Users;
 
        /** Channel list, a hash_map containing all channels XXX move to channel manager class
         */
@@ -662,8 +662,11 @@ class CoreExport InspIRCd
        void Cleanup();
 
        /** Return a time_t as a human-readable string.
+        * @param format The format to retrieve the date/time in. See `man 3 strftime`
+        * for more information. If NULL, "%a %b %d %T %Y" is assumed.
+        * @return A string representing the given date/time.
         */
-       static std::string TimeString(time_t curtime);
+       static std::string TimeString(time_t curtime, const char* format = NULL);
 
        /** Begin execution of the server.
         * NOTE: this function NEVER returns. Internally,