Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/contact.c @ 20772:8e53c75bb87c
Remove now unnecessary and potentially bad code.
author | Carlos Silva <typ0@pidgin.im> |
---|---|
date | Thu, 04 Oct 2007 02:04:38 +0000 |
parents | 4dd60add6a7c |
children | dcb28d9939ee |
comparison
equal
deleted
inserted
replaced
20771:aaf800eb7d55 | 20772:8e53c75bb87c |
---|---|
1022 msn_notification_send_fqy(soapconn->session, state->who); | 1022 msn_notification_send_fqy(soapconn->session, state->who); |
1023 | 1023 |
1024 user = msn_userlist_find_add_user(userlist, state->who, state->who); | 1024 user = msn_userlist_find_add_user(userlist, state->who, state->who); |
1025 msn_user_add_group_id(user, state->guid); | 1025 msn_user_add_group_id(user, state->guid); |
1026 | 1026 |
1027 if (msn_userlist_user_is_in_list(user, MSN_LIST_PL)) { | 1027 msn_soap_free_read_buf(soapconn); |
1028 msn_del_contact_from_list(soapconn->session->contact, NULL, state->who, MSN_LIST_PL); | |
1029 } else { | |
1030 msn_soap_free_read_buf(soapconn); | |
1031 } | |
1032 | |
1033 msn_callback_state_free(state); | 1028 msn_callback_state_free(state); |
1034 | 1029 |
1035 return TRUE; | 1030 return TRUE; |
1036 } | 1031 } |
1037 | 1032 |
1117 | 1112 |
1118 msn_userlist_add_buddy_to_list(userlist, state->who, MSN_LIST_AL); | 1113 msn_userlist_add_buddy_to_list(userlist, state->who, MSN_LIST_AL); |
1119 msn_userlist_add_buddy_to_list(userlist, state->who, MSN_LIST_FL); | 1114 msn_userlist_add_buddy_to_list(userlist, state->who, MSN_LIST_FL); |
1120 } | 1115 } |
1121 msn_notification_send_fqy(soapconn->session, state->who); | 1116 msn_notification_send_fqy(soapconn->session, state->who); |
1122 | |
1123 if (msn_userlist_user_is_in_list(user, MSN_LIST_PL)) { | |
1124 msn_del_contact_from_list(soapconn->session->contact, NULL, state->who, MSN_LIST_PL); | |
1125 msn_callback_state_free(state); | |
1126 return TRUE; | |
1127 } | |
1128 } | 1117 } |
1129 | 1118 |
1130 if (state->action & MSN_MOVE_BUDDY) { | 1119 if (state->action & MSN_MOVE_BUDDY) { |
1131 msn_del_contact_from_group(soapconn->session->contact, state->who, state->old_group_name); | 1120 msn_del_contact_from_group(soapconn->session->contact, state->who, state->old_group_name); |
1132 } else { | 1121 } else { |