comparison libpurple/protocols/irc/msgs.c @ 24203:e6b79961f69b

Unleak
author Stu Tomlinson <stu@nosnilmot.com>
date Mon, 29 Sep 2008 01:36:09 +0000
parents 819346c150f1
children 4f46eb13b540 5ace6c024230 985ab911753e
comparison
equal deleted inserted replaced
24202:b682a74a2c69 24203:e6b79961f69b
213 return; 213 return;
214 if (args[3] && args[4]) { 214 if (args[3] && args[4]) {
215 /* This is an extended syntax, not in RFC 1459 */ 215 /* This is an extended syntax, not in RFC 1459 */
216 int t1 = atoi(args[4]); 216 int t1 = atoi(args[4]);
217 time_t t2 = time(NULL); 217 time_t t2 = time(NULL);
218 char *time = purple_str_seconds_to_string(t2 - t1);
218 msg = g_strdup_printf(_("Ban on %s by %s, set %s ago"), 219 msg = g_strdup_printf(_("Ban on %s by %s, set %s ago"),
219 args[2], args[3], purple_str_seconds_to_string(t2 - t1)); 220 args[2], args[3], time);
221 g_free(time);
220 } else { 222 } else {
221 msg = g_strdup_printf(_("Ban on %s"), args[2]); 223 msg = g_strdup_printf(_("Ban on %s"), args[2]);
222 } 224 }
223 if (convo) { 225 if (convo) {
224 purple_conv_chat_write(PURPLE_CONV_CHAT(convo), "", msg, 226 purple_conv_chat_write(PURPLE_CONV_CHAT(convo), "", msg,