Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/yahoo/yahoo.c

    reaaa986 raa7ce1b  
    153153       
    154154        while( ic->groupchats )
    155                 imcb_chat_free( ic->groupchats->data );
     155                imcb_chat_free( ic->groupchats );
    156156       
    157157        for( l = yd->buddygroups; l; l = l->next )
     
    791791        struct byahoo_conf_invitation *inv = data;
    792792        struct groupchat *b;
    793         GSList *l;
    794        
    795         for( l = inv->ic->groupchats; l; l = l->next )
    796         {
    797                 b = l->data;
     793       
     794        for( b = inv->ic->groupchats; b; b = b->next )
    798795                if( b == inv->c )
    799796                        break;
    800         }
    801797       
    802798        if( b != NULL )
     
    831827        char txt[1024];
    832828        YList *m;
     829       
     830        if( g_strcasecmp( who, ic->acc->user ) == 0 )
     831                /* WTF, Yahoo! seems to echo these now? */
     832                return;
    833833       
    834834        inv = g_malloc( sizeof( struct byahoo_conf_invitation ) );
     
    860860{
    861861        struct im_connection *ic = byahoo_get_ic_by_id( id );
    862         struct groupchat *c = bee_chat_by_title( ic->bee, ic, room );
     862        struct groupchat *c;
     863       
     864        for( c = ic->groupchats; c && strcmp( c->title, room ) != 0; c = c->next );
    863865       
    864866        if( c )
     
    870872{
    871873        struct im_connection *ic = byahoo_get_ic_by_id( id );
    872         struct groupchat *c = bee_chat_by_title( ic->bee, ic, room );
     874        struct groupchat *c;
     875       
     876        for( c = ic->groupchats; c && strcmp( c->title, room ) != 0; c = c->next );
    873877       
    874878        if( c )
     
    880884        struct im_connection *ic = byahoo_get_ic_by_id( id );
    881885        char *m = byahoo_strip( msg );
    882         struct groupchat *c = bee_chat_by_title( ic->bee, ic, room );
     886        struct groupchat *c;
     887       
     888        for( c = ic->groupchats; c && strcmp( c->title, room ) != 0; c = c->next );
    883889       
    884890        if( c )
Note: See TracChangeset for help on using the changeset viewer.