changeset 5890:1a2fcda8a5e7

[gaim-migrate @ 6322] Adding buddies and receiving ADDs from MSN buddies should work right now, for real this time. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 15 Jun 2003 08:49:57 +0000
parents 466e0103ff8b
children 58ea0597a856
files src/protocols/msn/notification.c
diffstat 1 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/notification.c	Sun Jun 15 08:33:25 2003 +0000
+++ b/src/protocols/msn/notification.c	Sun Jun 15 08:49:57 2003 +0000
@@ -421,19 +421,26 @@
 	GaimConnection *gc = gaim_account_get_connection(account);
 	MsnPermitAdd *pa;
 	GSList *sl;
-	const char *list, *passport;
+	const char *list, *passport, *group_id = NULL;
 	char *friend;
 	char msg[MSN_BUF_LEN];
 
 	list = params[1];
-	passport = params[2];
 
-	friend = msn_url_decode(params[3]);
+	if (!strcmp(params[0], "0")) {
+		passport = params[3];
+		friend = msn_url_decode(params[4]);
+	}
+	else {
+		passport = params[2];
+		friend   = msn_url_decode(params[3]);
+		group_id = params[4];
+	}
 
 	if (!g_ascii_strcasecmp(list, "FL")) {
 		user = msn_user_new(session, passport, NULL);
 
-		msn_user_set_group_id(user, atoi(params[4]));
+		msn_user_set_group_id(user, atoi(group_id));
 
 		add_buddy(servconn, user);