diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-06-01 22:51:27 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-06-01 22:51:27 +0100 |
commit | 704dd38a1440dc9d614df9222d6196048226622c (patch) | |
tree | e35adaca74191f899a3158a3421783f1a3a67077 /protocols/oscar/oscar.c | |
parent | 3429b589177f286384dab151c167e16071f8a828 (diff) | |
parent | ba3233ce0b1fc34f3ad0a450bb1b661909dafb79 (diff) |
Merging head.
Diffstat (limited to 'protocols/oscar/oscar.c')
-rw-r--r-- | protocols/oscar/oscar.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/protocols/oscar/oscar.c b/protocols/oscar/oscar.c index f4c77a9f..c44a5729 100644 --- a/protocols/oscar/oscar.c +++ b/protocols/oscar/oscar.c @@ -1033,16 +1033,21 @@ 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[strlen(args->info.rtfmsg.rtfmsg)+1]; + strncpy(text, args->info.rtfmsg.rtfmsg, sizeof(text)); + imcb_buddy_msg(ic, normalize(userinfo->sn), text, 0, 0); } return 1; |