Changeset e00da63
- Timestamp:
- 2010-04-11T19:10:12Z (15 years ago)
- Branches:
- master
- Children:
- dbb0ce3
- Parents:
- a87e6ba
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
ra87e6ba re00da63 10 10 11 11 # Program variables 12 #objects = bitlbee.o chat.o dcc.o help.o ipc.o irc.o irc_commands.o nick.o query.o root_commands.o set.o storage.o $(STORAGE_OBJS)13 objects = bitlbee.o dcc.o help.o ipc.o irc.o irc_im.o irc_channel.o irc_commands.o irc_send.o irc_user.o nick.o root_commands.o set.o storage.o $(STORAGE_OBJS)12 #objects = chat.o 13 objects = bitlbee.o dcc.o help.o ipc.o irc.o irc_im.o irc_channel.o irc_commands.o irc_send.o irc_user.o nick.o query.o root_commands.o set.o storage.o $(STORAGE_OBJS) 14 14 headers = account.h bitlbee.h commands.h conf.h config.h help.h ipc.h irc.h log.h nick.h query.h set.h sock.h storage.h user.h lib/events.h lib/ftutil.h lib/http_client.h lib/ini.h lib/md5.h lib/misc.h lib/proxy.h lib/sha1.h lib/ssl_client.h lib/url.h protocols/ft.h protocols/nogaim.h 15 15 subdirs = lib protocols -
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 -
query.c
ra87e6ba re00da63 64 64 } 65 65 66 if( g_strcasecmp( set_getstr( &irc-> set, "query_order" ), "lifo" ) == 0 || irc->queries == q )66 if( g_strcasecmp( set_getstr( &irc->b->set, "query_order" ), "lifo" ) == 0 || irc->queries == q ) 67 67 query_display( irc, q ); 68 68 … … 179 179 query_t *q; 180 180 181 if( g_strcasecmp( set_getstr( &irc-> set, "query_order" ), "fifo" ) == 0 )181 if( g_strcasecmp( set_getstr( &irc->b->set, "query_order" ), "fifo" ) == 0 ) 182 182 q = irc->queries; 183 183 else
Note: See TracChangeset
for help on using the changeset viewer.