Mercurial > pidgin
diff libpurple/protocols/msn/msg.c @ 31577:9a23c70bdb7a
Get the P2P version based on the user. Still hard-coded as v1 though.
| author | Elliott Sales de Andrade <qulogic@pidgin.im> |
|---|---|
| date | Mon, 09 May 2011 08:06:27 +0000 |
| parents | 0656f6063cf2 |
| children | a406398412ee |
line wrap: on
line diff
--- a/libpurple/protocols/msn/msg.c Mon May 09 07:08:10 2011 +0000 +++ b/libpurple/protocols/msn/msg.c Mon May 09 08:06:27 2011 +0000 @@ -253,8 +253,10 @@ if (content_type != NULL && !strcmp(content_type, "application/x-msnmsgrp2p")) { + MsnP2PVersion p2p; msg->msnslp_message = TRUE; - msg->part = msn_slpmsgpart_new_from_data(tmp, payload_len - (tmp - tmp_base)); + p2p = msn_p2p_get_user_support(msg->remote_user); + msg->part = msn_slpmsgpart_new_from_data(p2p, tmp, payload_len - (tmp - tmp_base)); } if (payload_len - (tmp - tmp_base) > 0) {
