summary refs log tree commit diff stats
path: root/src/common/text.c
diff options
context:
space:
mode:
authorDiogo Sousa <diogogsousa@gmail.com>2013-06-22 23:48:17 +0100
committerDiogo Sousa <diogogsousa@gmail.com>2013-06-28 16:04:32 +0100
commitd1725e3f443f0133c113f417b6a594f79c6831e7 (patch)
treec6f720d97fd809f3a7b40139acff0f31d69d9931 /src/common/text.c
parent42da8fe3efb3d6bb7e3fb14169e7cc362e21921a (diff)
server-time for all numerical messages.
Diffstat (limited to 'src/common/text.c')
-rw-r--r--src/common/text.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/common/text.c b/src/common/text.c
index dc81feeb..05a20230 100644
--- a/src/common/text.c
+++ b/src/common/text.c
@@ -916,6 +916,20 @@ PrintTextf (session *sess, char *format, ...)
 	g_free (buf);
 }
 
+void
+PrintTextTimeStampf (session *sess, time_t timestamp, char *format, ...)
+{
+	va_list args;
+	char *buf;
+
+	va_start (args, format);
+	buf = g_strdup_vprintf (format, args);
+	va_end (args);
+
+	PrintTextTimeStamp (sess, buf, timestamp);
+	g_free (buf);
+}
+
 /* Print Events stuff here --AGL */
 
 /* Consider the following a NOTES file: