diff src/protocols/msn/userlist.c @ 10504:1a97d5e88d12

[gaim-migrate @ 11796] Lots of things here: - Several memory leak fixes - A few invalid memory access fixes - Fix a yahoo crash going idle when away - Fix Add user in chats to actually fill in the screenname - Add gaim_account_{get,set}_enabled to perl - Fix command priorities (fixes /me in IRC) - Fix MSN notification server transfer to be quiet about it - Fix MSN blist sync if user has insane friendly name - Make the docklet less crash-happy if it fails to embed in 3 seconds - Only probe for native plugins with the correct file extension - 1 typo fix :) ... and quite possibly something else I forgot. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Tue, 11 Jan 2005 17:25:06 +0000
parents ecf3ce2e2ab1
children ace8cd0de6ea
line wrap: on
line diff
--- a/src/protocols/msn/userlist.c	Tue Jan 11 02:00:44 2005 +0000
+++ b/src/protocols/msn/userlist.c	Tue Jan 11 17:25:06 2005 +0000
@@ -466,6 +466,7 @@
 msn_userlist_remove_group(MsnUserList *userlist, MsnGroup *group)
 {
 	userlist->groups = g_list_remove(userlist->groups, group);
+	msn_group_destroy(group);
 }
 
 MsnGroup *
@@ -629,6 +630,13 @@
 
 	store_name = (user != NULL) ? get_store_name(user) : who;
 
+	/* this might be a bit of a hack, but it should prevent notification server
+	 * disconnections for people who have buddies with insane friendly names
+	 * who added you to their buddy list from being disconnected. Stu. */
+	/* ... No, that sentence didn't parse for me either. Stu. */
+	if (strlen(store_name) > BUDDY_ALIAS_MAXLEN)
+		store_name = who;
+
 	/* Then request the add to the server. */
 	list = lists[list_id];