diff src/protocols/msn/user.c @ 9860:65b3156f9f48

[gaim-migrate @ 10739] (21:34:57) shx: and after applying the on of the memleak... (21:35:15) shx: patch to auto update msn buddy icons committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Wed, 25 Aug 2004 01:43:54 +0000
parents 1e5ef71c9583
children 86a6d78b070b
line wrap: on
line diff
--- a/src/protocols/msn/user.c	Wed Aug 25 01:35:24 2004 +0000
+++ b/src/protocols/msn/user.c	Wed Aug 25 01:43:54 2004 +0000
@@ -23,6 +23,7 @@
  */
 #include "msn.h"
 #include "user.h"
+#include "slp.h"
 
 MsnUser *
 msn_user_new(MsnUserList *userlist, const char *passport,
@@ -285,18 +286,8 @@
 
 	user->msnobj = obj;
 
-	if ((obj != NULL) && (user->list_op & MSN_LIST_FL_OP))
-	{
-		/* TODO: I think we need better buddy icon core functions */
-		GaimAccount *account;
-		const char *username;
-
-		account  = user->userlist->session->account;
-		username = msn_object_get_creator(obj);
-
-		if (gaim_find_conversation_with_account(username, account) != NULL)
-			msn_request_buddy_icon(account->gc, username);
-	}
+	if (user->list_op & MSN_LIST_FL_OP)
+		msn_queue_buddy_icon_request(user);
 }
 
 void