| 536 guint i; |
536 guint i; |
| 537 |
537 |
| 538 irc->recv_time = time(NULL); |
538 irc->recv_time = time(NULL); |
| 539 |
539 |
| 540 /* |
540 /* |
| 541 * ari seems to think that we should convert input to UTF8 before |
541 * The data based to irc-receiving-text is the raw protocol data. |
| 542 * emitting it with the signal. Mark Doliner doesn't know if that |
542 * TODO: It should be passed as an array of bytes and a length |
| 543 * would be an improvement or not, so he decided to put this |
543 * instead of a null terminated string. |
| 544 * comment here so that people in the future can decide. |
|
| 545 */ |
544 */ |
| 546 gaim_signal_emit(_irc_plugin, "irc-receiving-text", gaim_account_get_connection(irc->account), &input); |
545 gaim_signal_emit(_irc_plugin, "irc-receiving-text", gaim_account_get_connection(irc->account), &input); |
| 547 |
546 |
| 548 if (!strncmp(input, "PING ", 5)) { |
547 if (!strncmp(input, "PING ", 5)) { |
| 549 msg = irc_format(irc, "vv", "PONG", input + 5); |
548 msg = irc_format(irc, "vv", "PONG", input + 5); |