changeset 27867:2f7386e1c5d1

Print name of application in the invite to the debug log if it's available.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 09 Aug 2009 07:29:01 +0000
parents 58c8d6fc3aaf
children 9262c8f306a6
files libpurple/protocols/msn/msg.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/msg.c	Sun Aug 09 05:17:11 2009 +0000
+++ b/libpurple/protocols/msn/msg.c	Sun Aug 09 07:29:01 2009 +0000
@@ -1154,9 +1154,11 @@
 				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);
 }