pidgin: 969bc99e: ALICE sends a "603 Decline" to our DC re...

qulogic at pidgin.im qulogic at pidgin.im
Wed May 26 21:00:58 EDT 2010


-----------------------------------------------------------------
Revision: 969bc99e0a442f93b393fc5d4b42b1b4d2134832
Ancestor: 1967b5bed9066e10d1c7db900af07d91cf852181
Author: qulogic at pidgin.im
Date: 2010-05-26T23:15:06
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/969bc99e0a442f93b393fc5d4b42b1b4d2134832

Modified files:
        libpurple/protocols/msn/slp.c

ChangeLog: 

ALICE sends a "603 Decline" to our DC request, so we need to fallback to a
regular transfer in this case as well.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/slp.c	2122be21fc5a3facb60cf70cc278ce5495d7ed67
+++ libpurple/protocols/msn/slp.c	5811132cf3d10acbaf4cb92b2bfc3678351d7cfc
@@ -936,6 +936,14 @@ got_error(MsnSlpCall *slpcall,
 	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;
 }
 


More information about the Commits mailing list