changeset 30100:3c09870e8564

ALICE sends a "603 Decline" to our DC request, so we need to fallback to a regular transfer in this case as well.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Wed, 26 May 2010 23:15:06 +0000
parents ffcc09277b88
children 7f564cf26ea3
files libpurple/protocols/msn/slp.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/slp.c	Wed May 26 23:08:53 2010 +0000
+++ b/libpurple/protocols/msn/slp.c	Wed May 26 23:15:06 2010 +0000
@@ -936,6 +936,14 @@
 	purple_debug_error("msn", "Received non-OK result: %s\n",
 	                   error ? error : "Unknown");
 
+	if (type && !strcmp(type, "application/x-msnmsgr-transreqbody")) {
+		MsnDirectConn *dc = slpcall->slplink->dc;
+		if (dc) {
+			msn_dc_fallback_to_p2p(dc);
+			return;
+		}
+	}
+
 	slpcall->wasted = TRUE;
 }