Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/yahoo/yahoo.c

    r56699f0 r6e6b3d7  
    158158       
    159159        while( ic->groupchats )
    160                 imcb_chat_free( ic->groupchats->data );
     160                imcb_chat_free( ic->groupchats );
    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...
    615616        if( stat == YAHOO_STATUS_IDLE )
    616                 imcb_buddy_times( ic, who, 0, idle );
     617                imcb_buddy_times( ic, who, 0, away );
     618        */
    617619}
    618620
     
    684686               
    685687                inp->d = d;
    686                 d->tag = inp->h = b_input_add( fd, B_EV_IO_READ, (b_event_handler) byahoo_read_ready_callback, (gpointer) d );
     688                d->tag = inp->h = b_input_add( fd, GAIM_INPUT_READ, (b_event_handler) byahoo_read_ready_callback, (gpointer) d );
    687689        }
    688690        else if( cond == YAHOO_INPUT_WRITE )
     
    695697               
    696698                inp->d = d;
    697                 d->tag = inp->h = b_input_add( fd, B_EV_IO_WRITE, (b_event_handler) byahoo_write_ready_callback, (gpointer) d );
     699                d->tag = inp->h = b_input_add( fd, GAIM_INPUT_WRITE, (b_event_handler) byahoo_write_ready_callback, (gpointer) d );
    698700        }
    699701        else
     
    794796        struct byahoo_conf_invitation *inv = data;
    795797        struct groupchat *b;
    796         GSList *l;
    797        
    798         for( l = inv->ic->groupchats; l; l = l->next )
    799         {
    800                 b = l->data;
     798       
     799        for( b = inv->ic->groupchats; b; b = b->next )
    801800                if( b == inv->c )
    802801                        break;
    803         }
    804802       
    805803        if( b != NULL )
     
    867865{
    868866        struct im_connection *ic = byahoo_get_ic_by_id( id );
    869         struct groupchat *c = bee_chat_by_title( ic->bee, ic, room );
     867        struct groupchat *c;
     868       
     869        for( c = ic->groupchats; c && strcmp( c->title, room ) != 0; c = c->next );
    870870       
    871871        if( c )
     
    877877{
    878878        struct im_connection *ic = byahoo_get_ic_by_id( id );
    879         struct groupchat *c = bee_chat_by_title( ic->bee, ic, room );
     879        struct groupchat *c;
     880       
     881        for( c = ic->groupchats; c && strcmp( c->title, room ) != 0; c = c->next );
    880882       
    881883        if( c )
     
    887889        struct im_connection *ic = byahoo_get_ic_by_id( id );
    888890        char *m = byahoo_strip( msg );
    889         struct groupchat *c = bee_chat_by_title( ic->bee, ic, room );
     891        struct groupchat *c;
     892       
     893        for( c = ic->groupchats; c && strcmp( c->title, room ) != 0; c = c->next );
    890894       
    891895        if( c )
Note: See TracChangeset for help on using the changeset viewer.