comparison src/protocols/msn/notification.c @ 6695:0c5637b5462e

[gaim-migrate @ 7221] This is contact support. Really. It has a few bugs left in it, like sorting not working, and stuff like that, but it's pretty solid for the most part. I'm not in the mood to do a whole lot of typing, so just use and enjoy. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 02 Sep 2003 03:41:10 +0000
parents 0f0b34c72e69
children b7e113a59b51
comparison
equal deleted inserted replaced
6694:2d2f04c5c7d2 6695:0c5637b5462e
41 static gboolean 41 static gboolean
42 add_buddy(MsnServConn *servconn, MsnUser *user) 42 add_buddy(MsnServConn *servconn, MsnUser *user)
43 { 43 {
44 MsnSession *session = servconn->session; 44 MsnSession *session = servconn->session;
45 GaimConnection *gc = session->account->gc; 45 GaimConnection *gc = session->account->gc;
46 struct buddy *b; 46 GaimBuddy *b;
47 MsnGroup *group = NULL; 47 MsnGroup *group = NULL;
48 struct group *g = NULL; 48 GaimGroup *g = NULL;
49 int group_id; 49 int group_id;
50 50
51 group_id = msn_user_get_group_id(user); 51 group_id = msn_user_get_group_id(user);
52 52
53 if (group_id > -1) 53 if (group_id > -1)
94 94
95 if (b == NULL) { 95 if (b == NULL) {
96 b = gaim_buddy_new(gc->account, 96 b = gaim_buddy_new(gc->account,
97 msn_user_get_passport(user), NULL); 97 msn_user_get_passport(user), NULL);
98 98
99 gaim_blist_add_buddy(b, g, NULL); 99 gaim_blist_add_buddy(b, NULL, g, NULL);
100 } 100 }
101 101
102 b->proto_data = user; 102 b->proto_data = user;
103 103
104 serv_got_alias(gc, (char *)msn_user_get_passport(user), 104 serv_got_alias(gc, (char *)msn_user_get_passport(user),
518 size_t param_count) 518 size_t param_count)
519 { 519 {
520 MsnSession *session = servconn->session; 520 MsnSession *session = servconn->session;
521 GaimConnection *gc = session->account->gc; 521 GaimConnection *gc = session->account->gc;
522 const char *passport, *type, *value; 522 const char *passport, *type, *value;
523 struct buddy *b; 523 GaimBuddy *b;
524 MsnUser *user; 524 MsnUser *user;
525 525
526 if (param_count < 4) 526 if (param_count < 4)
527 return TRUE; 527 return TRUE;
528 528
572 size_t param_count) 572 size_t param_count)
573 { 573 {
574 GaimConnection *gc = servconn->session->account->gc; 574 GaimConnection *gc = servconn->session->account->gc;
575 int status = 0; 575 int status = 0;
576 const char *state, *passport, *friend; 576 const char *state, *passport, *friend;
577 struct buddy *b; 577 GaimBuddy *b;
578 578
579 state = params[1]; 579 state = params[1];
580 passport = params[2]; 580 passport = params[2];
581 friend = msn_url_decode(params[3]); 581 friend = msn_url_decode(params[3]);
582 582
623 lsg_cmd(MsnServConn *servconn, const char *command, const char **params, 623 lsg_cmd(MsnServConn *servconn, const char *command, const char **params,
624 size_t param_count) 624 size_t param_count)
625 { 625 {
626 MsnSession *session = servconn->session; 626 MsnSession *session = servconn->session;
627 MsnGroup *group; 627 MsnGroup *group;
628 struct group *g; 628 GaimGroup *g;
629 const char *name; 629 const char *name;
630 int group_num, num_groups, group_id; 630 int group_num, num_groups, group_id;
631 631
632 group_num = atoi(params[2]); 632 group_num = atoi(params[2]);
633 num_groups = atoi(params[3]); 633 num_groups = atoi(params[3]);