Changes in protocols/purple/purple.c [56699f0:f85e9d6]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/purple/purple.c
r56699f0 rf85e9d6 35 35 any context so this is the only way to get that. Don't want to support 36 36 libpurple in daemon mode anyway. */ 37 static bee_t *local_bee;37 static irc_t *local_irc; 38 38 39 39 static char *set_eval_display_name( set_t *set, char *value ); … … 157 157 158 158 default: 159 /** No way to talk to the user right now, invent one when160 this becomes important.161 159 irc_usermsg( acc->irc, "Setting with unknown type: %s (%d) Expect stuff to break..\n", 162 160 name, purple_account_option_get_type( o ) ); 163 */164 161 name = NULL; 165 162 } … … 254 251 PurpleAccount *pa; 255 252 256 if( local_bee != NULL && local_bee != acc->bee ) 257 { 258 imcb_error( ic, "Daemon mode detected. Do *not* try to use libpurple in daemon mode! " 259 "Please use inetd or ForkDaemon mode instead." ); 260 imc_logout( ic, FALSE ); 253 if( local_irc != NULL && local_irc != acc->irc ) 254 { 255 irc_usermsg( acc->irc, "Daemon mode detected. Do *not* try to use libpurple in daemon mode! " 256 "Please use inetd or ForkDaemon mode instead." ); 261 257 return; 262 258 } 263 local_ bee = acc->bee;259 local_irc = acc->irc; 264 260 265 261 /* For now this is needed in the _connected() handlers if using … … 687 683 imcb_buddy_status( ic, bud->name, flags, purple_status_get_name( as ), 688 684 purple_status_get_attr_string( as, "message" ) ); 689 690 imcb_buddy_times( ic, bud->name,691 purple_presence_get_login_time( bud->presence ),692 purple_presence_get_idle_time( bud->presence ) );693 685 } 694 686 } … … 874 866 pqad->user_data = user_data; 875 867 876 /* TODO: IRC stuff here :-( */877 868 q = g_strdup_printf( "Request: %s\n\n%s\n\n%s", title, primary, secondary ); 878 pqad->bee_data = query_add( local_ bee->ui_data, purple_ic_by_pa( account ), q,869 pqad->bee_data = query_add( local_irc, purple_ic_by_pa( account ), q, 879 870 prplcb_request_action_yes, prplcb_request_action_no, pqad ); 880 871
Note: See TracChangeset
for help on using the changeset viewer.