Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/oscar.c

    r11e090b re8f8b18  
    2121 */
    2222
    23 #include "sock.h"
    2423#include <errno.h>
    2524#include <ctype.h>
     
    3332#include "bitlbee.h"
    3433#include "proxy.h"
     34#include "sock.h"
    3535
    3636#include "aim.h"
     
    357357                odata->icq = TRUE;
    358358                /* this is odd but it's necessary for a proper do_import and do_export */
    359                 gc->protocol = PROTO_ICQ;
    360359                gc->password[8] = 0;
    361360        } else {
    362                 gc->protocol = PROTO_TOC;
    363361                gc->flags |= OPT_CONN_HTML;
    364362        }
     
    610608                return;
    611609        }
     610        /* [WvG] Wheeeee! Who needs error checking anyway? ;-) */
    612611        read(pos->fd, m, 16);
    613612        m[16] = '\0';
     
    26332632}
    26342633
    2635 static struct prpl *my_protocol = NULL;
    2636 
    2637 void oscar_init(struct prpl *ret) {
    2638         ret->protocol = PROTO_OSCAR;
     2634void oscar_init()
     2635{
     2636        struct prpl *ret = g_new0(struct prpl, 1);
     2637        ret->name = "oscar";
    26392638        ret->away_states = oscar_away_states;
    26402639        ret->login = oscar_login;
     
    26582657        ret->cmp_buddynames = aim_sncmp;
    26592658        ret->get_status_string = oscar_get_status_string;
    2660 
    26612659        ret->send_typing = oscar_send_typing;
    26622660
    2663         my_protocol = ret;
    2664 }
     2661        register_protocol(ret);
     2662}
Note: See TracChangeset for help on using the changeset viewer.