diff libpurple/protocols/msn/slp.c @ 23550:efa4534fd23a

Clean up some #define's in msn.h and various supporting changes.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Mon, 23 Jun 2008 05:36:52 +0000
parents 2d515f8f338e
children 7fc1fa02184a
line wrap: on
line diff
--- a/libpurple/protocols/msn/slp.c	Mon Jun 23 04:10:46 2008 +0000
+++ b/libpurple/protocols/msn/slp.c	Mon Jun 23 05:36:52 2008 +0000
@@ -251,7 +251,7 @@
 got_sessionreq(MsnSlpCall *slpcall, const char *branch,
 			   const char *euf_guid, const char *context)
 {
-	if (!strcmp(euf_guid, "A4268EEC-FEC5-49E5-95C3-F126696BDBF6"))
+	if (!strcmp(euf_guid, MSN_OBJ_GUID))
 	{
 		/* Emoticon or UserDisplay */
 		char *content;
@@ -332,7 +332,7 @@
 		msn_slplink_queue_slpmsg(slplink, slpmsg);
 		purple_imgstore_unref(img);
 	}
-	else if (!strcmp(euf_guid, "5D3E02AB-6190-11D3-BBBB-00C04F795683"))
+	else if (!strcmp(euf_guid, MSN_FT_GUID))
 	{
 		/* File Transfer */
 		PurpleAccount *account;
@@ -384,7 +384,8 @@
 
 			purple_xfer_request(xfer);
 		}
-	}
+	} else
+		purple_debug_warning("msn", "SLP SessionReq with unknown EUF-GUID: %s\n", euf_guid);
 }
 
 void