- Timestamp:
- 2010-04-11T19:10:12Z (15 years ago)
- Branches:
- master
- Children:
- dbb0ce3
- Parents:
- a87e6ba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/nogaim.c
ra87e6ba re00da63 359 359 query_callback doit, query_callback dont ) 360 360 { 361 //query_add( ic->irc, ic, msg, doit, dont, data );361 query_add( (irc_t *) ic->bee->ui_data, ic, msg, doit, dont, data ); 362 362 } 363 363 … … 452 452 }; 453 453 454 #if 0455 454 static void imcb_ask_auth_cb_no( void *data ) 456 455 { … … 472 471 g_free( cbd ); 473 472 } 474 #endif475 473 476 474 void imcb_ask_auth( struct im_connection *ic, const char *handle, const char *realname ) 477 475 { 478 #if 0479 476 struct imcb_ask_cb_data *data = g_new0( struct imcb_ask_cb_data, 1 ); 480 477 char *s, *realname_ = NULL; … … 490 487 data->ic = ic; 491 488 data->handle = g_strdup( handle ); 492 query_add( ic->irc, ic, s, imcb_ask_auth_cb_yes, imcb_ask_auth_cb_no, data ); 493 #endif 494 } 495 496 497 #if 0 489 query_add( (irc_t *) ic->bee->ui_data, ic, s, 490 imcb_ask_auth_cb_yes, imcb_ask_auth_cb_no, data ); 491 } 492 493 498 494 static void imcb_ask_add_cb_no( void *data ) 499 495 { … … 510 506 return imcb_ask_add_cb_no( data ); 511 507 } 512 #endif513 508 514 509 void imcb_ask_add( struct im_connection *ic, const char *handle, const char *realname ) 515 510 { 516 #if 0517 511 struct imcb_ask_cb_data *data = g_new0( struct imcb_ask_cb_data, 1 ); 518 512 char *s; 519 513 520 514 /* TODO: Make a setting for this! */ 521 if( user_findhandle(ic, handle ) != NULL )515 if( bee_user_by_handle( ic->bee, ic, handle ) != NULL ) 522 516 return; 523 517 … … 526 520 data->ic = ic; 527 521 data->handle = g_strdup( handle ); 528 query_add( ic->irc, ic, s, imcb_ask_add_cb_yes, imcb_ask_add_cb_no, data );529 #endif 522 query_add( (irc_t *) ic->bee->ui_data, ic, s, 523 imcb_ask_add_cb_yes, imcb_ask_add_cb_no, data ); 530 524 } 531 525
Note: See TracChangeset
for help on using the changeset viewer.