Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/oscar.c

    r7a2a486 r0eb971a  
    21032103}
    21042104
    2105 static void oscar_set_permit_deny(struct im_connection *ic) {
    2106         struct oscar_data *od = (struct oscar_data *)ic->proto_data;
    2107         if (od->icq) {
    2108                 GSList *list;
    2109                 char buf[MAXMSGLEN];
    2110                 int at;
    2111 
    2112                 switch(ic->permdeny) {
    2113                 case 1:
    2114                         aim_bos_changevisibility(od->sess, od->conn, AIM_VISIBILITYCHANGE_DENYADD, ic->acc->user);
    2115                         break;
    2116                 case 2:
    2117                         aim_bos_changevisibility(od->sess, od->conn, AIM_VISIBILITYCHANGE_PERMITADD, ic->acc->user);
    2118                         break;
    2119                 case 3:
    2120                         list = ic->permit;
    2121                         at = 0;
    2122                         while (list) {
    2123                                 at += g_snprintf(buf + at, sizeof(buf) - at, "%s&", (char *)list->data);
    2124                                 list = list->next;
    2125                         }
    2126                         aim_bos_changevisibility(od->sess, od->conn, AIM_VISIBILITYCHANGE_PERMITADD, buf);
    2127                         break;
    2128                 case 4:
    2129                         list = ic->deny;
    2130                         at = 0;
    2131                         while (list) {
    2132                                 at += g_snprintf(buf + at, sizeof(buf) - at, "%s&", (char *)list->data);
    2133                                 list = list->next;
    2134                         }
    2135                         aim_bos_changevisibility(od->sess, od->conn, AIM_VISIBILITYCHANGE_DENYADD, buf);
    2136                         break;
    2137                         default:
    2138                         break;
    2139                 }
    2140         } else {
    2141                 if (od->sess->ssi.received_data)
    2142                         aim_ssi_setpermdeny(od->sess, od->conn, ic->permdeny, 0xffffffff);
    2143         }
    2144 }
    2145 
    21462105static void oscar_add_permit(struct im_connection *ic, char *who) {
    21472106        struct oscar_data *od = (struct oscar_data *)ic->proto_data;
     
    26242583        ret->rem_permit = oscar_rem_permit;
    26252584        ret->rem_deny = oscar_rem_deny;
    2626         ret->set_permit_deny = oscar_set_permit_deny;
    26272585        ret->send_typing = oscar_send_typing;
    26282586       
Note: See TracChangeset for help on using the changeset viewer.