changeset 1568:5a8c66de56b7

[gaim-migrate @ 1578] la committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Wed, 14 Mar 2001 06:31:01 +0000
parents 0357164dffd0
children 446536be85dd
files plugins/msn/msn.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/msn/msn.c	Wed Mar 14 06:27:17 2001 +0000
+++ b/plugins/msn/msn.c	Wed Mar 14 06:31:01 2001 +0000
@@ -139,8 +139,14 @@
 
 		res = g_strsplit(buf, " ", 0);
 
+		/* If we have zero buddies, abort */
+		if (atoi(res[5]) == 0)
+		{
+			g_strfreev(res);
+			return;
+		}
+
 		/* First, let's check the list type */
-
 		if (!strcmp("FL", res[2]))
 		{
 			/* We're dealing with a forward list.  Add them