Mercurial > pidgin
comparison libpurple/protocols/msn/msg.c @ 27292: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 42360009f2e5 |
comparison
equal
deleted
inserted
replaced
27291:3a0552df3379 | 27292:a6d84d9de605 |
---|---|
1046 "Unhandled invite msg with GUID %s.\n", guid); | 1046 "Unhandled invite msg with GUID %s.\n", guid); |
1047 | 1047 |
1048 g_hash_table_destroy(body); | 1048 g_hash_table_destroy(body); |
1049 } | 1049 } |
1050 | 1050 |
1051 /* Only called from chats. Handwritten messages for IMs come as a SLP message */ | |
1052 void | |
1053 msn_handwritten_msg(MsnCmdProc *cmdproc, MsnMessage *msg) | |
1054 { | |
1055 const char *body; | |
1056 size_t body_len; | |
1057 | |
1058 body = msn_message_get_bin_data(msg, &body_len); | |
1059 msn_switchboard_show_ink(cmdproc->data, msg->remote_user, body); | |
1060 } | |
1061 |