Changeset e35d1a1 for protocols/nogaim.c
- Timestamp:
- 2007-04-22T20:44:27Z (17 years ago)
- Branches:
- master
- Children:
- 43671b9
- Parents:
- c737ba7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/nogaim.c
rc737ba7 re35d1a1 554 554 u->online = 0; 555 555 556 /* Remove him/her from the conversations to prevent PART messages after he/she QUIT already */557 for( c = ic-> conversations; c; c = c->next )556 /* Remove him/her from the groupchats to prevent PART messages after he/she QUIT already */ 557 for( c = ic->groupchats; c; c = c->next ) 558 558 remove_chat_buddy_silent( c, (char*) handle ); 559 559 } … … 685 685 } 686 686 687 void imcb_chat_ removed( struct groupchat *c )687 void imcb_chat_free( struct groupchat *c ) 688 688 { 689 689 struct im_connection *ic = c->ic; 690 struct groupchat *l = NULL;690 struct groupchat *l; 691 691 GList *ir; 692 692 … … 708 708 } 709 709 710 /* Find the previous chat in the linked list. */ 711 for( l = ic->groupchats; l && l->next != c; l = l->next ); 712 710 713 if( l ) 711 714 l->next = c->next; 712 715 else 713 ic-> conversations = c->next;716 ic->groupchats = c->next; 714 717 715 718 for( ir = c->in_room; ir; ir = ir->next ) … … 749 752 /* This one just creates the conversation structure, user won't see anything yet */ 750 753 751 if( ic-> conversations )752 { 753 for( c = ic-> conversations; c->next; c = c->next );754 if( ic->groupchats ) 755 { 756 for( c = ic->groupchats; c->next; c = c->next ); 754 757 c = c->next = g_new0( struct groupchat, 1 ); 755 758 } 756 759 else 757 ic-> conversations = c = g_new0( struct groupchat, 1 );760 ic->groupchats = c = g_new0( struct groupchat, 1 ); 758 761 759 762 c->ic = ic; … … 863 866 { 864 867 ic = l->data; 865 for( c = ic-> conversations; c && g_strcasecmp( c->channel, channel ) != 0; c = c->next );868 for( c = ic->groupchats; c && g_strcasecmp( c->channel, channel ) != 0; c = c->next ); 866 869 if( c ) 867 870 return c;
Note: See TracChangeset
for help on using the changeset viewer.