changeset 8509:711927294475

[gaim-migrate @ 9245] Patch from Stu Tomlinson to prevent a disconnect when trying to remove an invalid user on the buddy list in MSN that has a space in the name. Thanks again :) committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 27 Mar 2004 00:59:49 +0000
parents 8e6e1a2b1327
children e016156db02a
files src/protocols/msn/msn.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/msn.c	Fri Mar 26 15:51:51 2004 +0000
+++ b/src/protocols/msn/msn.c	Sat Mar 27 00:59:49 2004 +0000
@@ -734,6 +734,12 @@
 	char outparams[MSN_BUF_LEN];
 	MsnGroup *group;
 
+	if (strchr(who, ' '))
+	{
+		/* This is a broken blist entry. */
+		return;
+	}
+
 	group = msn_groups_find_with_name(session->groups, group_name);
 
 	if (group == NULL)