changeset 9204:6478190b36a9

[gaim-migrate @ 9999] Let's prevent a disconnect caused from the commit I did earlier. Only set the group to 0 if the list is FL. Otherwise, don't pass it along. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 06 Jun 2004 04:15:32 +0000
parents 551599e6a6fa
children 5b35a6b96726
files src/protocols/msn/notification.c
diffstat 1 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/notification.c	Sun Jun 06 04:12:30 2004 +0000
+++ b/src/protocols/msn/notification.c	Sun Jun 06 04:15:32 2004 +0000
@@ -1142,11 +1142,18 @@
 	MsnCmdProc *cmdproc;
 	cmdproc = notification->servconn->cmdproc;
 
-	if (group_id < 0)
+	if (group_id < 0 && !strcmp(list, "FL"))
 		group_id = 0;
 
-	msn_cmdproc_send(cmdproc, "ADD", "%s %s %s %d",
-					 list, who, store_name, group_id);
+	if (group_id >= 0)
+	{
+		msn_cmdproc_send(cmdproc, "ADD", "%s %s %s %d",
+						 list, who, store_name, group_id);
+	}
+	else
+	{
+		msn_cmdproc_send(cmdproc, "ADD", "%s %s %s", list, who, store_name);
+	}
 }
 
 void