$NetBSD: patch-ag,v 1.2 2010/08/10 20:26:36 sketch Exp $ --- src/core/icb-servers.c (revision 5174) +++ src/core/icb-servers.c (working copy) @@ -39,6 +39,9 @@ server = g_new0(ICB_SERVER_REC, 1); server->chat_type = ICB_PROTOCOL; + server->silentwho = FALSE; + server->updatenicks = FALSE; + server->recvbuf_size = 256; server->recvbuf = g_malloc(server->recvbuf_size); @@ -113,7 +116,6 @@ const char *msg, int target_type) { ICB_SERVER_REC *icbserver; - char *str; icbserver = ICB_SERVER(server); g_return_if_fail(server != NULL); @@ -125,9 +127,7 @@ icb_send_open_msg(icbserver, msg); } else { /* private message */ - str = g_strconcat(target, " ", msg, NULL); - icb_command(icbserver, "m", str, NULL); - g_free(str); + icb_send_private_msg(icbserver, target, msg); } }