Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/yahoo/yahoo.c

    r7b23afd r9cb9868  
    6464};
    6565
     66static char *yahoo_name()
     67{
     68        return "Yahoo";
     69}
     70
     71static struct prpl *my_protocol = NULL;
    6672static GSList *byahoo_inputs = NULL;
    6773static int byahoo_chat_id = 0;
     
    390396}
    391397
    392 void byahoo_init( )
    393 {
    394         struct prpl *ret = g_new0(struct prpl, 1);
    395         ret->name = "yahoo";
     398void byahoo_init( struct prpl *ret )
     399{
     400        ret->protocol = PROTO_YAHOO;
     401        ret->name = yahoo_name;
    396402       
    397403        ret->login = byahoo_login;
    398404        ret->close = byahoo_close;
    399405        ret->send_im = byahoo_send_im;
     406        ret->send_typing = byahoo_send_typing;
    400407        ret->get_info = byahoo_get_info;
    401408        ret->away_states = byahoo_away_states;
     
    405412        ret->remove_buddy = byahoo_remove_buddy;
    406413        ret->get_status_string = byahoo_get_status_string;
    407         ret->send_typing = byahoo_send_typing;
    408414       
    409415        ret->chat_send = byahoo_chat_send;
     
    411417        ret->chat_leave = byahoo_chat_leave;
    412418        ret->chat_open = byahoo_chat_open;
    413        
    414         register_protocol(ret);
     419        ret->cmp_buddynames = g_strcasecmp;
     420       
     421        my_protocol = ret;
    415422}
    416423
     
    426433                yd = gc->proto_data;
    427434               
    428                 if( !strcmp(gc->prpl->name, "yahoo") && yd->y2_id == id )
     435                if( gc->protocol == PROTO_YAHOO && yd->y2_id == id )
    429436                        return( gc );
    430437        }
Note: See TracChangeset for help on using the changeset viewer.