pidgin: 4e33c2f8: Print name of application in the invite ...

qulogic at pidgin.im qulogic at pidgin.im
Mon Aug 10 00:45:35 EDT 2009


-----------------------------------------------------------------
Revision: 4e33c2f89c7681c06acd63a305040db3f59f1497
Ancestor: c5920a65f85a2bb34b1cd6ff8c031c07601beee4
Author: qulogic at pidgin.im
Date: 2009-08-09T07:29:01
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/4e33c2f89c7681c06acd63a305040db3f59f1497

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

ChangeLog: 

Print name of application in the invite to the debug log if it's available.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/msg.c	96a7be711c4155ebda943476e801c42f53ccb2c4
+++ libpurple/protocols/msn/msg.c	e9e4225cbb9324072003f75fac3f40dd0570e4d5
@@ -1154,9 +1154,11 @@ msn_invite_msg(MsnCmdProc *cmdproc, MsnM
 				g_free(buf);
 			}
 		}
-	} else
-		purple_debug_warning("msn",
-				"Unhandled invite msg with GUID %s.\n", guid);
+	} else {
+		const gchar *application = g_hash_table_lookup(body, "Application-Name");
+		purple_debug_warning("msn", "Unhandled invite msg with GUID %s: %s.\n",
+		                     guid, application ? application : "(null)");
+	}
 
 	g_hash_table_destroy(body);
 }


More information about the Commits mailing list