diff src/protocols/msn/switchboard.c @ 6786:8efafdc38718

[gaim-migrate @ 7325] It won't work yet, but this is part of the framework for the MSN User Display image stuff. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 07 Sep 2003 22:35:00 +0000
parents 0c5637b5462e
children 8f228a7d5076
line wrap: on
line diff
--- a/src/protocols/msn/switchboard.c	Sun Sep 07 22:06:55 2003 +0000
+++ b/src/protocols/msn/switchboard.c	Sun Sep 07 22:35:00 2003 +0000
@@ -20,6 +20,7 @@
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 #include "msn.h"
+#include "msnslp.h"
 #include "prefs.h"
 #include "switchboard.h"
 #include "utils.h"
@@ -362,7 +363,8 @@
 
 	clientcaps = msn_message_get_hashtable_from_body(msg);
 
-	if (swboard->chat == NULL) {
+	if (swboard->chat == NULL && session->protocol_ver < 8)
+	{
 		if ((value = g_hash_table_lookup(clientcaps, "Buddy-Icons")) != NULL)
 			msn_buddy_icon_invite(swboard);
 	}
@@ -464,6 +466,8 @@
 									  clientcaps_msg);
 		msn_servconn_register_msg_type(servconn, "application/x-buddyicon",
 									   msn_buddy_icon_msg);
+		msn_servconn_register_msg_type(servconn, "application/x-msnmsgrp2p",
+									   msn_p2p_msg);
 
 		/* Save these for future use. */
 		switchboard_commands  = servconn->commands;