From d4bc2d90d88527f434f910b9821c145394434d71 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sun, 16 May 2010 10:46:27 +0100 Subject: Handle AIM_CAPS_ICQRTF messages (sometimes sent by certain mobile clients). Not sure if this needs any stripping but I guess we'll find out. --- protocols/oscar/oscar.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'protocols') diff --git a/protocols/oscar/oscar.c b/protocols/oscar/oscar.c index 00c5e5ef..9f568c44 100644 --- a/protocols/oscar/oscar.c +++ b/protocols/oscar/oscar.c @@ -1029,16 +1029,20 @@ static int incomingim_chan2(aim_session_t *sess, aim_conn_t *conn, aim_userinfo_ *exch = args->info.chat.roominfo.exchange; m = g_list_append(m, exch); - g_snprintf( txt, 1024, "Got an invitation to chatroom %s from %s: %s", name, userinfo->sn, args->msg ); + g_snprintf(txt, 1024, "Got an invitation to chatroom %s from %s: %s", name, userinfo->sn, args->msg); inv->ic = ic; inv->exchange = *exch; inv->name = g_strdup(name); - imcb_ask( ic, txt, inv, oscar_accept_chat, oscar_reject_chat); + imcb_ask(ic, txt, inv, oscar_accept_chat, oscar_reject_chat); if (name) g_free(name); + } else if (args->reqclass & AIM_CAPS_ICQRTF) { + // TODO: constify + char *text = g_strdup(args->info.rtfmsg.rtfmsg); + imcb_buddy_msg(ic, normalize(userinfo->sn), text, 0, 0); } return 1; -- cgit v1.2.3