Changes in protocols/yahoo/yahoo.c [6e6b3d7:56699f0]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/yahoo/yahoo.c
r6e6b3d7 r56699f0 158 158 159 159 while( ic->groupchats ) 160 imcb_chat_free( ic->groupchats );160 imcb_chat_free( ic->groupchats->data ); 161 161 162 162 for( l = yd->buddygroups; l; l = l->next ) … … 613 613 imcb_buddy_status( ic, who, flags, state_string, msg ); 614 614 615 /* Not implemented yet...616 615 if( stat == YAHOO_STATUS_IDLE ) 617 imcb_buddy_times( ic, who, 0, away ); 618 */ 616 imcb_buddy_times( ic, who, 0, idle ); 619 617 } 620 618 … … 686 684 687 685 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 ); 689 687 } 690 688 else if( cond == YAHOO_INPUT_WRITE ) … … 697 695 698 696 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 ); 700 698 } 701 699 else … … 796 794 struct byahoo_conf_invitation *inv = data; 797 795 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; 800 801 if( b == inv->c ) 801 802 break; 803 } 802 804 803 805 if( b != NULL ) … … 865 867 { 866 868 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 ); 870 870 871 871 if( c ) … … 877 877 { 878 878 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 ); 882 880 883 881 if( c ) … … 889 887 struct im_connection *ic = byahoo_get_ic_by_id( id ); 890 888 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 ); 894 890 895 891 if( c )
Note: See TracChangeset
for help on using the changeset viewer.