Mercurial > pidgin.yaz
comparison src/protocols/msn/userlist.c @ 9194:364aa73323b5
[gaim-migrate @ 9989]
A few things here. First, some spelling corrections. Second, make sure we
always send a group ID when we add somebody. Default to 0 if nothing else.
We were sending an ADD in some cases without a group ID, and then MSN sent
back a 224 - Invalid Group (I swear that never happened before?), and we
misinterpreted the error and figured the passport was invalid. Third, don't
spit out the "Unhandled command 'BLP'" errors.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 06 Jun 2004 03:19:41 +0000 |
parents | 502707ca1836 |
children | d5487fdec696 |
comparison
equal
deleted
inserted
replaced
9193:502707ca1836 | 9194:364aa73323b5 |
---|---|
547 { | 547 { |
548 MsnUser *user; | 548 MsnUser *user; |
549 int group_id; | 549 int group_id; |
550 const char *list; | 550 const char *list; |
551 const char *store_name; | 551 const char *store_name; |
552 | 552 |
553 group_id = -1; | 553 group_id = -1; |
554 | 554 |
555 if (group_name != NULL) | 555 if (group_name != NULL) |
556 { | 556 { |
557 group_id = msn_userlist_find_group_id(userlist, group_name); | 557 group_id = msn_userlist_find_group_id(userlist, group_name); |
564 } | 564 } |
565 } | 565 } |
566 | 566 |
567 user = msn_userlist_find_user(userlist, who); | 567 user = msn_userlist_find_user(userlist, who); |
568 | 568 |
569 /* First we're going to check if it's alredy there. */ | 569 /* First we're going to check if it's already there. */ |
570 if (user_is_there(user, list_id, group_id)) | 570 if (user_is_there(user, list_id, group_id)) |
571 { | 571 { |
572 list = lists[list_id]; | 572 list = lists[list_id]; |
573 gaim_debug_error("msn", "User '%s' is alredy there: %s\n", | 573 gaim_debug_error("msn", "User '%s' is already there: %s\n", who, list); |
574 who, list); | |
575 return; | 574 return; |
576 } | 575 } |
577 | 576 |
578 store_name = (user != NULL) ? get_store_name(user) : who; | 577 store_name = (user != NULL) ? get_store_name(user) : who; |
579 | 578 |