src/protocols/msn/user.c

changeset 9860
8f54a6091294
parent 9776
18190cb3c009
child 10044
884c09b189e6
equal deleted inserted replaced
9859:b0b0df034a9f 9860:8f54a6091294
21 * along with this program; if not, write to the Free Software 21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 */ 23 */
24 #include "msn.h" 24 #include "msn.h"
25 #include "user.h" 25 #include "user.h"
26 #include "slp.h"
26 27
27 MsnUser * 28 MsnUser *
28 msn_user_new(MsnUserList *userlist, const char *passport, 29 msn_user_new(MsnUserList *userlist, const char *passport,
29 const char *store_name) 30 const char *store_name)
30 { 31 {
283 if (user->msnobj != NULL) 284 if (user->msnobj != NULL)
284 msn_object_destroy(user->msnobj); 285 msn_object_destroy(user->msnobj);
285 286
286 user->msnobj = obj; 287 user->msnobj = obj;
287 288
288 if ((obj != NULL) && (user->list_op & MSN_LIST_FL_OP)) 289 if (user->list_op & MSN_LIST_FL_OP)
289 { 290 msn_queue_buddy_icon_request(user);
290 /* TODO: I think we need better buddy icon core functions */
291 GaimAccount *account;
292 const char *username;
293
294 account = user->userlist->session->account;
295 username = msn_object_get_creator(obj);
296
297 if (gaim_find_conversation_with_account(username, account) != NULL)
298 msn_request_buddy_icon(account->gc, username);
299 }
300 } 291 }
301 292
302 void 293 void
303 msn_user_set_client_caps(MsnUser *user, GHashTable *info) 294 msn_user_set_client_caps(MsnUser *user, GHashTable *info)
304 { 295 {

mercurial