plugins/msn/msn.c

changeset 1568
d7d491511e8c
parent 1567
7488baf3b13f
child 1569
844e5cee381b
--- 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

mercurial