diff src/protocols/msn/switchboard.c @ 5475:ad9887c91a59

[gaim-migrate @ 5871] Fixed our support for the standard. I misread the discussion and used an alternative proposal. So now we use the new, correct one. Basically, what this means to the users is that 0.64 users will still see 0.63 MSN buddy icons, but 0.63 won't see 0.64's. No big deal. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 22 May 2003 01:31:56 +0000
parents c6efac0e28ff
children 4f72b611f0ee
line wrap: on
line diff
--- a/src/protocols/msn/switchboard.c	Wed May 21 21:02:05 2003 +0000
+++ b/src/protocols/msn/switchboard.c	Thu May 22 01:31:56 2003 +0000
@@ -30,7 +30,7 @@
  * Utility functions
  **************************************************************************/
 static gboolean
-__send_clientinfo(MsnSwitchBoard *swboard)
+__send_clientcaps(MsnSwitchBoard *swboard)
 {
 	MsnMessage *msg;
 
@@ -38,7 +38,7 @@
 		return TRUE;
 
 	msg = msn_message_new();
-	msn_message_set_content_type(msg, "text/x-clientinfo");
+	msn_message_set_content_type(msg, "text/x-clientcaps");
 	msn_message_set_charset(msg, NULL);
 	msn_message_set_attr(msg, "User-Agent", NULL);
 	msn_message_set_body(msg, MSN_CLIENTINFO);
@@ -89,7 +89,7 @@
 	if (swboard->chat != NULL)
 		gaim_chat_add_user(GAIM_CHAT(swboard->chat), gc->username, NULL);
 
-	return __send_clientinfo(swboard);
+	return __send_clientcaps(swboard);
 }
 
 static gboolean
@@ -196,7 +196,7 @@
 		}
 	}
 
-	return __send_clientinfo(swboard);
+	return __send_clientcaps(swboard);
 }
 
 static gboolean
@@ -318,19 +318,19 @@
 }
 
 static gboolean
-__clientinfo_msg(MsnServConn *servconn, const MsnMessage *msg)
+__clientcaps_msg(MsnServConn *servconn, const MsnMessage *msg)
 {
 	MsnSession *session = servconn->session;
 	MsnSwitchBoard *swboard = servconn->data;
 	MsnUser *user;
-	GHashTable *clientinfo;
+	GHashTable *clientcaps;
 	const char *value;
 
 	user = msn_user_new(session, servconn->msg_passport, NULL);
 
-	clientinfo = msn_message_get_hashtable_from_body(msg);
+	clientcaps = msn_message_get_hashtable_from_body(msg);
 
-	if ((value = g_hash_table_lookup(clientinfo, "Buddy-Icons")) != NULL)
+	if ((value = g_hash_table_lookup(clientcaps, "Buddy-Icons")) != NULL)
 		msn_buddy_icon_invite(swboard);
 
 	return TRUE;
@@ -423,8 +423,10 @@
 		msn_servconn_register_msg_type(servconn, "text/plain", __plain_msg);
 		msn_servconn_register_msg_type(servconn, "text/x-msmsgscontrol",
 									   __control_msg);
+		msn_servconn_register_msg_type(servconn, "text/x-clientcaps",
+									   __clientcaps_msg);
 		msn_servconn_register_msg_type(servconn, "text/x-clientinfo",
-									   __clientinfo_msg);
+									   __clientcaps_msg);
 		msn_servconn_register_msg_type(servconn, "application/x-buddyicon",
 									   msn_buddy_icon_msg);