Changeset 7bf0f5f0
- Timestamp:
- 2006-04-07T09:22:48Z (19 years ago)
- Branches:
- master
- Children:
- c2fbf86f
- Parents:
- 36fa9bd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/nogaim.c
r36fa9bd r7bf0f5f0 566 566 /* prpl.c */ 567 567 568 struct show_got_added_data 569 { 570 struct gaim_connection *gc; 571 char *handle; 572 }; 573 574 void show_got_added_no( gpointer w, struct show_got_added_data *data ) 575 { 576 g_free( data->handle ); 577 g_free( data ); 578 } 579 580 void show_got_added_yes( gpointer w, struct show_got_added_data *data ) 581 { 582 data->gc->prpl->add_buddy( data->gc, data->handle ); 583 add_buddy( data->gc, NULL, data->handle, data->handle ); 584 585 return show_got_added_no( w, data ); 586 } 587 568 588 void show_got_added( struct gaim_connection *gc, char *handle, const char *realname ) 569 589 { 570 return; 590 struct show_got_added_data *data = g_new0( struct show_got_added_data, 1 ); 591 char *s; 592 593 /* TODO: Make a setting for this! */ 594 if( user_findhandle( gc, handle ) != NULL ) 595 return; 596 597 s = g_strdup_printf( "The user %s is not in your buddy list yet. Do you want to add him/her now?", handle ); 598 599 data->gc = gc; 600 data->handle = g_strdup( handle ); 601 query_add( gc->irc, gc, s, show_got_added_yes, show_got_added_no, data ); 571 602 } 572 603 -
query.c
r36fa9bd r7bf0f5f0 140 140 if( ans ) 141 141 { 142 serv_got_crap( q->gc, "Accepted: %s", q->question ); 142 143 q->yes( NULL, q->data ); 143 serv_got_crap( q->gc, "Accepted: %s", q->question );144 144 } 145 145 else 146 146 { 147 serv_got_crap( q->gc, "Rejected: %s", q->question ); 147 148 q->no( NULL, q->data ); 148 serv_got_crap( q->gc, "Rejected: %s", q->question );149 149 } 150 150 q->data = NULL;
Note: See TracChangeset
for help on using the changeset viewer.