Mercurial > pidgin
comparison src/protocols/irc/parse.c @ 11972:73777ad45562
[gaim-migrate @ 14265]
Get rid of gc->is_idle, and get rid of some duplicate Yahoo! code
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Fri, 04 Nov 2005 17:33:32 +0000 |
| parents | 6e0986c82bc5 |
| children | 39734dd473e0 |
comparison
equal
deleted
inserted
replaced
| 11971:cc7146eee26f | 11972:73777ad45562 |
|---|---|
| 413 buf = g_strdup_printf("/me %s", cur); | 413 buf = g_strdup_printf("/me %s", cur); |
| 414 buf[strlen(buf) - 1] = '\0'; | 414 buf[strlen(buf) - 1] = '\0'; |
| 415 return buf; | 415 return buf; |
| 416 } else if (!strncmp(cur, "PING ", 5)) { | 416 } else if (!strncmp(cur, "PING ", 5)) { |
| 417 if (notice) { /* reply */ | 417 if (notice) { /* reply */ |
| 418 /* TODO: Should this read in the timestamp as a double? */ | |
| 418 sscanf(cur, "PING %lu", ×tamp); | 419 sscanf(cur, "PING %lu", ×tamp); |
| 419 gc = gaim_account_get_connection(irc->account); | 420 gc = gaim_account_get_connection(irc->account); |
| 420 if (!gc) | 421 if (!gc) |
| 421 return NULL; | 422 return NULL; |
| 422 buf = g_strdup_printf(_("Reply time from %s: %lu seconds"), from, time(NULL) - timestamp); | 423 buf = g_strdup_printf(_("Reply time from %s: %lu seconds"), from, time(NULL) - timestamp); |
