libpurple/protocols/irc/parse.c

changeset 34449
bbcb198650b7
parent 34304
faf0414a8b51
child 35029
f9f672dcaadf
child 36782
64936dae41a3
equal deleted inserted replaced
34448:e15d91a77cb3 34449:bbcb198650b7
563 if (!gc) 563 if (!gc)
564 return NULL; 564 return NULL;
565 /* TODO: Should this read in the timestamp as a double? */ 565 /* TODO: Should this read in the timestamp as a double? */
566 if (sscanf(cur, "PING %lu", &timestamp) == 1) { 566 if (sscanf(cur, "PING %lu", &timestamp) == 1) {
567 buf = g_strdup_printf(_("Reply time from %s: %lu seconds"), from, time(NULL) - timestamp); 567 buf = g_strdup_printf(_("Reply time from %s: %lu seconds"), from, time(NULL) - timestamp);
568 purple_notify_info(gc, _("PONG"), _("CTCP PING reply"), buf); 568 purple_notify_info(gc, _("PONG"),
569 _("CTCP PING reply"), buf,
570 purple_request_cpar_from_connection(gc));
569 g_free(buf); 571 g_free(buf);
570 } else 572 } else
571 purple_debug(PURPLE_DEBUG_ERROR, "irc", "Unable to parse PING timestamp"); 573 purple_debug(PURPLE_DEBUG_ERROR, "irc", "Unable to parse PING timestamp");
572 return NULL; 574 return NULL;
573 } else { 575 } else {

mercurial