mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02:00
If /SET dcc_upload_path is empty, we should use the current directory, not
root directory. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2074 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
b3c0778dc4
commit
65c9a361ab
2 changed files with 8 additions and 3 deletions
|
|
@ -113,9 +113,13 @@ static void sig_dcc_send_complete(GList **list, WINDOW_REC *window,
|
|||
return;
|
||||
|
||||
/* completing filename parameter for /DCC SEND */
|
||||
path = convert_home(settings_get_str("dcc_upload_path"));
|
||||
path = convert_home(settings_get_str("dcc_upload_path"));
|
||||
if (*path == '\0') {
|
||||
/* use the default path */
|
||||
g_free_and_null(path);
|
||||
}
|
||||
|
||||
*list = filename_complete(word, path);
|
||||
g_free(path);
|
||||
|
||||
if (*list != NULL) {
|
||||
*want_space = FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue