Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/oscar.c

    r7b23afd r9cb9868  
    364364                odata->icq = TRUE;
    365365                /* this is odd but it's necessary for a proper do_import and do_export */
     366                gc->protocol = PROTO_ICQ;
    366367                gc->password[8] = 0;
    367368        } else {
     369                gc->protocol = PROTO_TOC;
    368370                gc->flags |= OPT_CONN_HTML;
    369371        }
     
    12081210        return 1;
    12091211}
    1210 /*
    1211 int handle_cmp_aim(const char * a, const char * b) {
    1212         return handle_cmp(a, b, PROTO_TOC);
    1213 }
    1214 */
     1212
    12151213static int gaim_parse_incoming_im(aim_session_t *sess, aim_frame_t *fr, ...) {
    12161214        int channel, ret = 0;
     
    24652463}
    24662464
    2467 void oscar_init()
    2468 {
    2469         struct prpl *ret = g_new0(struct prpl, 1);
    2470         ret->name = "oscar";
     2465static struct prpl *my_protocol = NULL;
     2466
     2467void oscar_init(struct prpl *ret) {
     2468        ret->protocol = PROTO_OSCAR;
    24712469        ret->away_states = oscar_away_states;
    24722470        ret->login = oscar_login;
     
    24842482        ret->set_permit_deny = oscar_set_permit_deny;
    24852483        ret->keepalive = oscar_keepalive;
     2484        ret->cmp_buddynames = aim_sncmp;
    24862485        ret->get_status_string = oscar_get_status_string;
    24872486
    2488         register_protocol(ret);
    2489 }
     2487        my_protocol = ret;
     2488}
Note: See TracChangeset for help on using the changeset viewer.