--- src/tcp.c.orig	Tue Nov  9 00:24:01 1999
+++ src/tcp.c	Mon Nov 29 17:24:52 1999
@@ -1547,7 +1547,8 @@
 	if( (Current_Status&0xffff) != STATUS_ONLINE && (Current_Status&0xffff) != STATUS_FREE_CHAT &&
 	    (Current_Status&0xffff) != STATUS_INVISIBLE )
 		sent_message = Away_Message;
-	
+	sent_message = toNet( sent_message );
+
 	DW_2_Chars( pack_head.uin1, our_info->uin );
 	Word_2_Chars( pack_head.version, 0x0003 );
 	Word_2_Chars( pack_head.command, ICQ_CMDxTCP_ACK );
@@ -1608,8 +1609,12 @@
 		g_free( buffer );
 	}
 	else
+	{
+		g_free( sent_message );
 		return -1;
+	}
 
+	g_free( sent_message );
 	return 1;
 }
 
@@ -3654,7 +3659,7 @@
 
 void timeout_server( GtkWidget *widget, CONTACT_PTR contact )
 {
-	icq_sendmsg( contact->uin, (char*)contact->tcp_text_queue->data, TRUE );
+	icq_sendmsg( contact->uin, (char*)contact->tcp_text_queue->data, TRUE, TRUE );
 	g_free( contact->tcp_text_queue->data );
 	contact->tcp_text_queue = g_slist_remove( contact->tcp_text_queue, contact->tcp_text_queue->data );
 }
