| 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", ×tamp) == 1) { |
566 if (sscanf(cur, "PING %lu", ×tamp) == 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 { |