changeset 32823:e2c275816484

Add support for %dateOpened% in templates.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Fri, 18 Nov 2011 19:08:09 +0000
parents a1253e91981e
children 910475e626be
files pidgin/gtkconv.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkconv.c	Fri Nov 18 18:22:50 2011 +0000
+++ b/pidgin/gtkconv.c	Fri Nov 18 19:08:09 2011 +0000
@@ -5098,6 +5098,9 @@
 			replace = purple_utf8_strftime(format ? format : "%X", NULL);
 			g_free(format);
 
+		} else if (g_str_has_prefix(cur, "%dateOpened%")) {
+			replace = purple_date_format_short(NULL);
+
 		} else {
 			cur++;
 			continue;