Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/oscar.c

    r9cb9868 r7b23afd  
    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;
    367366                gc->password[8] = 0;
    368367        } else {
    369                 gc->protocol = PROTO_TOC;
    370368                gc->flags |= OPT_CONN_HTML;
    371369        }
     
    12101208        return 1;
    12111209}
    1212 
     1210/*
     1211int handle_cmp_aim(const char * a, const char * b) {
     1212        return handle_cmp(a, b, PROTO_TOC);
     1213}
     1214*/
    12131215static int gaim_parse_incoming_im(aim_session_t *sess, aim_frame_t *fr, ...) {
    12141216        int channel, ret = 0;
     
    24632465}
    24642466
    2465 static struct prpl *my_protocol = NULL;
    2466 
    2467 void oscar_init(struct prpl *ret) {
    2468         ret->protocol = PROTO_OSCAR;
     2467void oscar_init()
     2468{
     2469        struct prpl *ret = g_new0(struct prpl, 1);
     2470        ret->name = "oscar";
    24692471        ret->away_states = oscar_away_states;
    24702472        ret->login = oscar_login;
     
    24822484        ret->set_permit_deny = oscar_set_permit_deny;
    24832485        ret->keepalive = oscar_keepalive;
    2484         ret->cmp_buddynames = aim_sncmp;
    24852486        ret->get_status_string = oscar_get_status_string;
    24862487
    2487         my_protocol = ret;
    2488 }
     2488        register_protocol(ret);
     2489}
Note: See TracChangeset for help on using the changeset viewer.