libpurple/protocols/irc/parse.c

changeset 41159
2b4446ccebc9
parent 40765
a5381c20e802
child 41488
95f59c2bc50d
equal deleted inserted replaced
41158:e250a5b59c97 41159:2b4446ccebc9
699 msg = irc_format(irc, "vv", "PONG", input + 5); 699 msg = irc_format(irc, "vv", "PONG", input + 5);
700 irc_send(irc, msg); 700 irc_send(irc, msg);
701 g_free(msg); 701 g_free(msg);
702 return; 702 return;
703 } else if (!strncmp(input, "ERROR ", 6)) { 703 } else if (!strncmp(input, "ERROR ", 6)) {
704 GError *error; 704 GError *error = NULL;
705 if (g_utf8_validate(input, -1, NULL)) { 705 if (g_utf8_validate(input, -1, NULL)) {
706 error = g_error_new( 706 error = g_error_new(
707 PURPLE_CONNECTION_ERROR, 707 PURPLE_CONNECTION_ERROR,
708 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, 708 PURPLE_CONNECTION_ERROR_NETWORK_ERROR,
709 "%s\n%s", _("Disconnected."), input); 709 "%s\n%s", _("Disconnected."), input);

mercurial