Changeset 5a673f3 for protocols/oscar


Ignore:
Timestamp:
2010-05-09T13:04:45Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
dcd16c5
Parents:
47fae0f
Message:

Pick up buddy group information from OSCAR server-side contact list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/oscar.c

    r47fae0f r5a673f3  
    255255
    256256        u = t = g_strdup(s);
    257 
    258         strcpy(t, s);
    259257        g_strdown(t);
    260258
     
    20902088static int gaim_ssi_parselist(aim_session_t *sess, aim_frame_t *fr, ...) {
    20912089        struct im_connection *ic = sess->aux_data;
    2092         struct aim_ssi_item *curitem;
     2090        struct aim_ssi_item *curitem, *curgroup;
    20932091        int tmp;
    20942092        char *nrm;
     
    21062104                                        if (curitem->data && aim_gettlv(curitem->data, 0x0131, 1))
    21072105                                                    realname = aim_gettlv_str(curitem->data, 0x0131, 1);
    2108                                                
    2109                                         imcb_add_buddy(ic, nrm, NULL);
     2106                                       
     2107                                        imcb_add_buddy(ic, nrm, curgroup->gid == curitem->gid ? curgroup->name : NULL);
    21102108                                       
    21112109                                        if (realname) {
     
    21152113                                        }
    21162114                                }
     2115                                break;
     2116
     2117                        case 0x0001: /* Group */
     2118                                curgroup = curitem;
    21172119                                break;
    21182120
Note: See TracChangeset for help on using the changeset viewer.