Fall back to SB when a DC is declined via transrespbody also.

Sat, 07 Aug 2010 19:51:30 +0000

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Sat, 07 Aug 2010 19:51:30 +0000
changeset 30602
624f3d8bff5d
parent 30601
8bc7b54f24b8
child 30603
7e4ead16ca03
child 30604
5e9c27c7a33b

Fall back to SB when a DC is declined via transrespbody also.

Fixes #12150.

ChangeLog file | annotate | diff | comparison | revisions
libpurple/protocols/msn/slp.c file | annotate | diff | comparison | revisions
--- a/ChangeLog	Sat Aug 07 18:43:31 2010 +0000
+++ b/ChangeLog	Sat Aug 07 19:51:30 2010 +0000
@@ -25,6 +25,8 @@
 	MSN:
 	* Support for web-based buddy icons, used when a buddy logs in to the
 	  messenger on the Live website.
+	* Fix file transfers with some clients that don't support direct
+	  connections (e.g., papyon, telepathy-butterfly, etc.) (#12150)
 
 	MXit:
 	* Fix filename for the Shocked emoticon. (#12364)
--- a/libpurple/protocols/msn/slp.c	Sat Aug 07 18:43:31 2010 +0000
+++ b/libpurple/protocols/msn/slp.c	Sat Aug 07 19:51:30 2010 +0000
@@ -941,7 +941,8 @@
 	purple_debug_error("msn", "Received non-OK result: %s\n",
 	                   error ? error : "Unknown");
 
-	if (type && !strcmp(type, "application/x-msnmsgr-transreqbody")) {
+	if (type && (!strcmp(type, "application/x-msnmsgr-transreqbody")
+	          || !strcmp(type, "application/x-msnmsgr-transrespbody"))) {
 		MsnDirectConn *dc = slpcall->slplink->dc;
 		if (dc) {
 			msn_dc_fallback_to_sb(dc);

mercurial