comparison libpurple/protocols/msn/contact.c @ 23521:a0e957b7b923

Take care of more cleanup in the MSN code. No more C++ style comments. msn_convert_iso8601 was replaced with purple_str_to_time everywhere, so remove it. REM and SYN were removed in MSNP13. REA was removed in MSNP11. PRP and BLP were added already, so remove the TODO. Contact information is now taken from the contact server, so remove all that commented code from the ADL command.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 12 Jul 2008 06:44:19 +0000
parents 7bceac816e19
children 4162ac08c775
comparison
equal deleted inserted replaced
23520:9acfa387c0a2 23521:a0e957b7b923
937 937
938 userlist = session->userlist; 938 userlist = session->userlist;
939 939
940 purple_debug_info("msn", "Contact added successfully\n"); 940 purple_debug_info("msn", "Contact added successfully\n");
941 941
942 // the code this block is replacing didn't send ADL for yahoo contacts, 942 /* the code this block is replacing didn't send ADL for yahoo contacts,
943 // but i haven't confirmed this is WLM's behaviour wrt yahoo contacts 943 * but i haven't confirmed this is WLM's behaviour wrt yahoo contacts
944 */
944 if ( !msn_user_is_yahoo(session->account, state->who) ) { 945 if ( !msn_user_is_yahoo(session->account, state->who) ) {
945 msn_userlist_add_buddy_to_list(userlist, state->who, MSN_LIST_AL); 946 msn_userlist_add_buddy_to_list(userlist, state->who, MSN_LIST_AL);
946 msn_userlist_add_buddy_to_list(userlist, state->who, MSN_LIST_FL); 947 msn_userlist_add_buddy_to_list(userlist, state->who, MSN_LIST_FL);
947 } 948 }
948 949
1560 purple_debug_info("msn", "Group %s guid not found, returning.\n", group_name); 1561 purple_debug_info("msn", "Group %s guid not found, returning.\n", group_name);
1561 return; 1562 return;
1562 } 1563 }
1563 1564
1564 if ( !strcmp(guid, MSN_INDIVIDUALS_GROUP_ID) || !strcmp(guid, MSN_NON_IM_GROUP_ID) ) { 1565 if ( !strcmp(guid, MSN_INDIVIDUALS_GROUP_ID) || !strcmp(guid, MSN_NON_IM_GROUP_ID) ) {
1565 // XXX add back PurpleGroup since it isn't really removed in the server? 1566 /* XXX add back PurpleGroup since it isn't really removed in the server? */
1566 return; 1567 return;
1567 } 1568 }
1568 1569
1569 state = msn_callback_state_new(session); 1570 state = msn_callback_state_new(session);
1570 msn_callback_state_set_action(state, MSN_DEL_GROUP); 1571 msn_callback_state_set_action(state, MSN_DEL_GROUP);
1606 msn_callback_state_set_new_group_name(state, new_group_name); 1607 msn_callback_state_set_new_group_name(state, new_group_name);
1607 1608
1608 if ( !strcmp(guid, MSN_INDIVIDUALS_GROUP_ID) || !strcmp(guid, MSN_NON_IM_GROUP_ID) ) { 1609 if ( !strcmp(guid, MSN_INDIVIDUALS_GROUP_ID) || !strcmp(guid, MSN_NON_IM_GROUP_ID) ) {
1609 MsnCallbackState *new_state = msn_callback_state_dup(state); 1610 MsnCallbackState *new_state = msn_callback_state_dup(state);
1610 msn_add_group(session, new_state, new_group_name); 1611 msn_add_group(session, new_state, new_group_name);
1611 // XXX move every buddy there (we probably need to fix concurrent SOAP reqs first) 1612 /* XXX move every buddy there (we probably need to fix concurrent SOAP reqs first) */
1612 } 1613 }
1613 1614
1614 msn_callback_state_set_action(state, MSN_RENAME_GROUP); 1615 msn_callback_state_set_action(state, MSN_RENAME_GROUP);
1615 1616
1616 escaped_group_name = g_markup_escape_text(new_group_name, -1); 1617 escaped_group_name = g_markup_escape_text(new_group_name, -1);