pkgsrc/chat/irssi-icb/patches/patch-ag
sketch 8f0f152656 Add another bunch of patches, including:
- implement commands via irssi signals
 - detect /topic on join
 - support /names, including on join
 - build correctly as .so on OSX
2010-08-10 20:26:36 +00:00

33 lines
879 B
Text

$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);
}
}