=== modified file 'irc.c'
|
|
|
136 | 136 | set_add( irc, "default_target", "root", NULL ); |
137 | 137 | set_add( irc, "display_namechanges", "false", set_eval_bool ); |
138 | 138 | set_add( irc, "handle_unknown", "root", NULL ); |
| 139 | set_add( irc, "ask_add_buddy", "true", set_eval_bool ); |
139 | 140 | set_add( irc, "lcnicks", "true", set_eval_bool ); |
140 | 141 | set_add( irc, "ops", "both", set_eval_ops ); |
141 | 142 | set_add( irc, "private", "true", set_eval_bool ); |
=== modified file 'protocols/nogaim.c'
|
|
|
587 | 587 | |
588 | 588 | void show_got_added( struct gaim_connection *gc, char *handle, const char *realname ) |
589 | 589 | { |
| 590 | if( !set_getint( gc->irc, "ask_add_buddy" ) || user_findhandle( gc, handle ) != NULL ) |
| 591 | return; |
| 592 | |
590 | 593 | struct show_got_added_data *data = g_new0( struct show_got_added_data, 1 ); |
591 | 594 | char *s; |
592 | | |
593 | | /* TODO: Make a setting for this! */ |
594 | | if( user_findhandle( gc, handle ) != NULL ) |
595 | | return; |
596 | | |
| 595 | |
597 | 596 | s = g_strdup_printf( "The user %s is not in your buddy list yet. Do you want to add him/her now?", handle ); |
598 | 597 | |
599 | 598 | data->gc = gc; |