| 534 struct _irc_msg *msgent; |
534 struct _irc_msg *msgent; |
| 535 char *cur, *end, *tmp, *from, *msgname, *fmt, **args, *msg; |
535 char *cur, *end, *tmp, *from, *msgname, *fmt, **args, *msg; |
| 536 guint i; |
536 guint i; |
| 537 |
537 |
| 538 irc->recv_time = time(NULL); |
538 irc->recv_time = time(NULL); |
| |
539 |
| |
540 /* |
| |
541 * ari seems to think that we should convert input to UTF8 before |
| |
542 * emitting it with the signal. Mark Doliner doesn't know if that |
| |
543 * would be an improvement or not, so he decided to put this |
| |
544 * comment here so that people in the future can decide. |
| |
545 */ |
| 539 gaim_signal_emit(_irc_plugin, "irc-receiving-text", gaim_account_get_connection(irc->account), &input); |
546 gaim_signal_emit(_irc_plugin, "irc-receiving-text", gaim_account_get_connection(irc->account), &input); |
| 540 |
547 |
| 541 if (!strncmp(input, "PING ", 5)) { |
548 if (!strncmp(input, "PING ", 5)) { |
| 542 msg = irc_format(irc, "vv", "PONG", input + 5); |
549 msg = irc_format(irc, "vv", "PONG", input + 5); |
| 543 irc_send(irc, msg); |
550 irc_send(irc, msg); |