Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/yahoo/yahoo.c

    r6e6b3d7 r56699f0  
    158158       
    159159        while( ic->groupchats )
    160                 imcb_chat_free( ic->groupchats );
     160                imcb_chat_free( ic->groupchats->data );
    161161       
    162162        for( l = yd->buddygroups; l; l = l->next )
     
    613613        imcb_buddy_status( ic, who, flags, state_string, msg );
    614614       
    615         /* Not implemented yet...
    616615        if( stat == YAHOO_STATUS_IDLE )
    617                 imcb_buddy_times( ic, who, 0, away );
    618         */
     616                imcb_buddy_times( ic, who, 0, idle );
    619617}
    620618
     
    686684               
    687685                inp->d = d;
    688                 d->tag = inp->h = b_input_add( fd, GAIM_INPUT_READ, (b_event_handler) byahoo_read_ready_callback, (gpointer) d );
     686                d->tag = inp->h = b_input_add( fd, B_EV_IO_READ, (b_event_handler) byahoo_read_ready_callback, (gpointer) d );
    689687        }
    690688        else if( cond == YAHOO_INPUT_WRITE )
     
    697695               
    698696                inp->d = d;
    699                 d->tag = inp->h = b_input_add( fd, GAIM_INPUT_WRITE, (b_event_handler) byahoo_write_ready_callback, (gpointer) d );
     697                d->tag = inp->h = b_input_add( fd, B_EV_IO_WRITE, (b_event_handler) byahoo_write_ready_callback, (gpointer) d );
    700698        }
    701699        else
     
    796794        struct byahoo_conf_invitation *inv = data;
    797795        struct groupchat *b;
    798        
    799         for( b = inv->ic->groupchats; b; b = b->next )
     796        GSList *l;
     797       
     798        for( l = inv->ic->groupchats; l; l = l->next )
     799        {
     800                b = l->data;
    800801                if( b == inv->c )
    801802                        break;
     803        }
    802804       
    803805        if( b != NULL )
     
    865867{
    866868        struct im_connection *ic = byahoo_get_ic_by_id( id );
    867         struct groupchat *c;
    868        
    869         for( c = ic->groupchats; c && strcmp( c->title, room ) != 0; c = c->next );
     869        struct groupchat *c = bee_chat_by_title( ic->bee, ic, room );
    870870       
    871871        if( c )
     
    877877{
    878878        struct im_connection *ic = byahoo_get_ic_by_id( id );
    879         struct groupchat *c;
    880        
    881         for( c = ic->groupchats; c && strcmp( c->title, room ) != 0; c = c->next );
     879        struct groupchat *c = bee_chat_by_title( ic->bee, ic, room );
    882880       
    883881        if( c )
     
    889887        struct im_connection *ic = byahoo_get_ic_by_id( id );
    890888        char *m = byahoo_strip( msg );
    891         struct groupchat *c;
    892        
    893         for( c = ic->groupchats; c && strcmp( c->title, room ) != 0; c = c->next );
     889        struct groupchat *c = bee_chat_by_title( ic->bee, ic, room );
    894890       
    895891        if( c )
Note: See TracChangeset for help on using the changeset viewer.