Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn.c

    r9cb9868 r7b23afd  
    2626#include "nogaim.h"
    2727#include "msn.h"
    28 
    29 static struct prpl *my_protocol = NULL;
    3028
    3129static void msn_login( struct aim_user *acct )
     
    375373}
    376374
    377 void msn_init(struct prpl *ret)
    378 {
    379         ret->protocol = PROTO_MSN;
     375void msn_init()
     376{
     377        struct prpl *ret = g_new0(struct prpl, 1);
     378        ret->name = "msn";
    380379        ret->login = msn_login;
    381380        ret->close = msn_close;
     
    398397        ret->rem_deny = msn_rem_deny;
    399398        ret->send_typing = msn_send_typing;
    400         ret->cmp_buddynames = g_strcasecmp;
    401 
    402         my_protocol = ret;
    403 }
     399
     400        register_protocol(ret);
     401}
Note: See TracChangeset for help on using the changeset viewer.