diff src/protocols/msn/userlist.c @ 11638:3a05b53a589e

[gaim-migrate @ 13914] Some bits'n'pieces: A bunch of memory leak fixes Fix newly created accounts to connect in the currently active global status Fix the modify account dialog to only show relevant user options etc. Update sametime to use some more of the new status stuff, it still needs more love though. Some s/online/available/ for consistency across prpls Fix a racyness in disconnecting connections that want to die (fixes the Yahoo crash when signing on somewhere else) Sorry if I caused any conflicts! committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Mon, 10 Oct 2005 17:59:48 +0000
parents 45d54425dc65
children e346a085bb4f
line wrap: on
line diff
--- a/src/protocols/msn/userlist.c	Mon Oct 10 12:29:30 2005 +0000
+++ b/src/protocols/msn/userlist.c	Mon Oct 10 17:59:48 2005 +0000
@@ -651,10 +651,17 @@
 
 	if (!gaim_email_is_valid(who))
 	{
-		char *str = g_strdup_printf(_("Unable to add \"%s\"."), who);
-		gaim_notify_error(NULL, NULL, str,
-						  _("The screen name specified is invalid."));
-		g_free(str);
+		/* only notify the user about problems adding to the friends list
+		 * maybe we should do something else for other lists, but it probably
+		 * won't cause too many problems if we just ignore it */
+		if (list_id == MSN_LIST_FL)
+		{
+			char *str = g_strdup_printf(_("Unable to add \"%s\"."), who);
+			gaim_notify_error(NULL, NULL, str,
+							  _("The screen name specified is invalid."));
+			g_free(str);
+		}
+
 		return;
 	}