summaryrefslogtreecommitdiff
path: root/src/command_parse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r--src/command_parse.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index a59d6db62..bf04960bd 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -53,6 +53,11 @@ int InspIRCd::OperPassCompare(const char* data,const char* input, int tagnumber)
return strcmp(data,input);
}
+std::string InspIRCd::TimeString(time_t curtime)
+{
+ return std::string(ctime(&curtime),24);
+}
+
long InspIRCd::Duration(const char* str)
{
char n_field[MAXBUF];