Mercurial > pidgin.yaz
diff libpurple/protocols/msn/msg.c @ 27374:a6d84d9de605
Add support for receiving handwritten (Ink) messages from MSN buddies.
Based on patch from notak and galt, but using imgstore instead of a custom
smiley (like AIM DirectIM), and with better error checking.
References #393.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Mon, 06 Jul 2009 04:37:06 +0000 |
parents | 79e043347bbe |
children | 9c413bda20be 85fa979b08c2 42360009f2e5 |
line wrap: on
line diff
--- a/libpurple/protocols/msn/msg.c Sun Jul 05 05:41:00 2009 +0000 +++ b/libpurple/protocols/msn/msg.c Mon Jul 06 04:37:06 2009 +0000 @@ -1048,3 +1048,14 @@ g_hash_table_destroy(body); } +/* Only called from chats. Handwritten messages for IMs come as a SLP message */ +void +msn_handwritten_msg(MsnCmdProc *cmdproc, MsnMessage *msg) +{ + const char *body; + size_t body_len; + + body = msn_message_get_bin_data(msg, &body_len); + msn_switchboard_show_ink(cmdproc->data, msg->remote_user, body); +} +