Changeset 42acba1 for protocols/oscar
- Timestamp:
- 2010-07-25T08:54:25Z (14 years ago)
- Branches:
- master
- Children:
- 5588edf5
- Parents:
- 8b01217
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/oscar/oscar.c
r8b01217 r42acba1 1943 1943 static void oscar_add_buddy(struct im_connection *g, char *name, char *group) { 1944 1944 struct oscar_data *odata = (struct oscar_data *)g->proto_data; 1945 aim_ssi_addbuddies(odata->sess, odata->conn, OSCAR_GROUP, &name, 1, 0); 1945 bee_user_t *bu; 1946 1947 if (group && (bu = bee_user_by_handle(g->bee, g, name)) && bu->group) 1948 aim_ssi_movebuddy(odata->sess, odata->conn, bu->group->name, group, name); 1949 else 1950 aim_ssi_addbuddies(odata->sess, odata->conn, group ? : OSCAR_GROUP, &name, 1, 0); 1946 1951 } 1947 1952 … … 2067 2072 for( i = 0; i < count; i ++ ) 2068 2073 { 2074 struct aim_ssi_item *ssigroup = aim_ssi_itemlist_findparent( sess->ssi.items, list ); 2075 char *group = ssigroup ? ssigroup->name : NULL; 2076 2069 2077 st = aimbs_get16( &fr->data ); 2070 2078 if( st == 0x00 ) 2071 2079 { 2072 imcb_add_buddy( sess->aux_data, normalize(list), NULL);2080 imcb_add_buddy( sess->aux_data, normalize(list), group ); 2073 2081 } 2074 2082 else if( st == 0x0E )
Note: See TracChangeset
for help on using the changeset viewer.