| 594 |
594 |
| 595 /* Next add the trailing carriage return line feed. */ |
595 /* Next add the trailing carriage return line feed. */ |
| 596 g_string_append(msg, "\r\n"); |
596 g_string_append(msg, "\r\n"); |
| 597 |
597 |
| 598 /* Finally turn the string into bytes and send it! */ |
598 /* Finally turn the string into bytes and send it! */ |
| 599 bytes = g_bytes_new_take(msg->str, msg->len); |
599 bytes = g_string_free_to_bytes(msg); |
| 600 g_string_free(msg, FALSE); |
|
| 601 |
|
| 602 purple_queued_output_stream_push_bytes_async(priv->output, bytes, |
600 purple_queued_output_stream_push_bytes_async(priv->output, bytes, |
| 603 G_PRIORITY_DEFAULT, |
601 G_PRIORITY_DEFAULT, |
| 604 priv->cancellable, |
602 priv->cancellable, |
| 605 purple_ircv3_connection_write_cb, |
603 purple_ircv3_connection_write_cb, |
| 606 connection); |
604 connection); |