changeset 23439:819346c150f1

Use a more friendly format for the timestamp in the banlist. It's weird to compute time in millions of seconds.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 11 Jul 2008 06:35:32 +0000
parents 08bbba359cc2
children f4b2fecfb557 35673f4abf46
files libpurple/protocols/irc/msgs.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/irc/msgs.c	Tue Jul 08 17:50:25 2008 +0000
+++ b/libpurple/protocols/irc/msgs.c	Fri Jul 11 06:35:32 2008 +0000
@@ -215,10 +215,8 @@
 			/* This is an extended syntax, not in RFC 1459 */
 			int t1 = atoi(args[4]);
 			time_t t2 = time(NULL);
-			msg = g_strdup_printf(ngettext("Ban on %s by %s, set %ld second ago",
-						       "Ban on %s by %s, set %ld seconds ago",
-						       t2 - t1),
-			                      args[2], args[3], t2 - t1);
+			msg = g_strdup_printf(_("Ban on %s by %s, set %s ago"),
+			                      args[2], args[3], purple_str_seconds_to_string(t2 - t1));
 		} else {
 			msg = g_strdup_printf(_("Ban on %s"), args[2]);
 		}