libpurple/protocols/irc/parse.c

changeset 32157
39ba2e2492ee
parent 32037
619f32df41f1
child 32276
abc0b7c0cb86
child 32438
dc8991868906
equal deleted inserted replaced
32156:dff89601e951 32157:39ba2e2492ee
668 g_free(msg); 668 g_free(msg);
669 return; 669 return;
670 } else if (!strncmp(input, "ERROR ", 6)) { 670 } else if (!strncmp(input, "ERROR ", 6)) {
671 if (g_utf8_validate(input, -1, NULL)) { 671 if (g_utf8_validate(input, -1, NULL)) {
672 char *tmp = g_strdup_printf("%s\n%s", _("Disconnected."), input); 672 char *tmp = g_strdup_printf("%s\n%s", _("Disconnected."), input);
673 purple_connection_error_reason (gc, 673 purple_connection_error (gc,
674 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, tmp); 674 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, tmp);
675 g_free(tmp); 675 g_free(tmp);
676 } else 676 } else
677 purple_connection_error_reason (gc, 677 purple_connection_error (gc,
678 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, 678 PURPLE_CONNECTION_ERROR_NETWORK_ERROR,
679 _("Disconnected.")); 679 _("Disconnected."));
680 return; 680 return;
681 } 681 }
682 682

mercurial