| 629 g_free(msg); |
629 g_free(msg); |
| 630 return; |
630 return; |
| 631 } else if (!strncmp(input, "ERROR ", 6)) { |
631 } else if (!strncmp(input, "ERROR ", 6)) { |
| 632 if (g_utf8_validate(input, -1, NULL)) { |
632 if (g_utf8_validate(input, -1, NULL)) { |
| 633 char *tmp = g_strdup_printf("%s\n%s", _("Disconnected."), input); |
633 char *tmp = g_strdup_printf("%s\n%s", _("Disconnected."), input); |
| 634 purple_connection_error_reason (gc, PURPLE_REASON_NETWORK_ERROR, tmp); |
634 purple_connection_error_reason (gc, |
| |
635 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, tmp); |
| 635 g_free(tmp); |
636 g_free(tmp); |
| 636 } else |
637 } else |
| 637 purple_connection_error_reason (gc, |
638 purple_connection_error_reason (gc, |
| 638 PURPLE_REASON_NETWORK_ERROR, _("Disconnected.")); |
639 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, |
| |
640 _("Disconnected.")); |
| 639 return; |
641 return; |
| 640 } |
642 } |
| 641 |
643 |
| 642 if (input[0] != ':' || (cur = strchr(input, ' ')) == NULL) { |
644 if (input[0] != ':' || (cur = strchr(input, ' ')) == NULL) { |
| 643 irc_parse_error_cb(irc, input); |
645 irc_parse_error_cb(irc, input); |