| 105 |
105 |
| 106 result = g_output_stream_flush_finish(G_OUTPUT_STREAM(source), |
106 result = g_output_stream_flush_finish(G_OUTPUT_STREAM(source), |
| 107 res, &error); |
107 res, &error); |
| 108 |
108 |
| 109 if (!result) { |
109 if (!result) { |
| 110 purple_connection_g_error(gc, error, |
110 g_prefix_error(&error, _("Lost connection with server: ")); |
| 111 _("Lost connection with server: %s")); |
111 purple_connection_g_error(gc, error); |
| 112 g_clear_error(&error); |
112 g_clear_error(&error); |
| 113 return; |
113 return; |
| 114 } |
114 } |
| 115 } |
115 } |
| 116 |
116 |
| 425 |
425 |
| 426 conn = g_socket_client_connect_to_host_finish(G_SOCKET_CLIENT(source), |
426 conn = g_socket_client_connect_to_host_finish(G_SOCKET_CLIENT(source), |
| 427 res, &error); |
427 res, &error); |
| 428 |
428 |
| 429 if (conn == NULL) { |
429 if (conn == NULL) { |
| 430 purple_connection_g_error(gc, error, |
430 g_prefix_error(&error, _("Unable to connect: ")); |
| 431 _("Unable to connect: %s")); |
431 purple_connection_g_error(gc, error); |
| 432 g_clear_error(&error); |
432 g_clear_error(&error); |
| 433 return; |
433 return; |
| 434 } |
434 } |
| 435 |
435 |
| 436 irc = purple_connection_get_protocol_data(gc); |
436 irc = purple_connection_get_protocol_data(gc); |
| 596 |
596 |
| 597 line = g_data_input_stream_read_line_finish( |
597 line = g_data_input_stream_read_line_finish( |
| 598 G_DATA_INPUT_STREAM(source), res, &len, &error); |
598 G_DATA_INPUT_STREAM(source), res, &len, &error); |
| 599 |
599 |
| 600 if (line == NULL && error != NULL) { |
600 if (line == NULL && error != NULL) { |
| 601 purple_connection_g_error(gc, error, |
601 g_prefix_error(&error, _("Lost connection with server: ")); |
| 602 _("Lost connection with server: %s")); |
602 purple_connection_g_error(gc, error); |
| 603 g_clear_error(&error); |
603 g_clear_error(&error); |
| 604 return; |
604 return; |
| 605 } else if (line == NULL) { |
605 } else if (line == NULL) { |
| 606 purple_connection_error (gc, |
606 purple_connection_error (gc, |
| 607 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, |
607 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, |