summaryrefslogtreecommitdiff
path: root/src/fe-common/irc/dcc
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-11-19 02:25:42 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-11-19 02:25:42 +0000
commitb3c0778dc45415f1c42be17a8c452b0ab7316920 (patch)
tree0e0de11fb15abf36418ecdafda67ee6cee55a385 /src/fe-common/irc/dcc
parentbd2af6cb980295b73f1bd3722dd34ff179e0a6eb (diff)
downloadirssi-b3c0778dc45415f1c42be17a8c452b0ab7316920.zip
Filename completion for /DCC SEND looked files from wrong default directory.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2073 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc/dcc')
-rw-r--r--src/fe-common/irc/dcc/fe-dcc-send.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/fe-common/irc/dcc/fe-dcc-send.c b/src/fe-common/irc/dcc/fe-dcc-send.c
index 3cf8b850..ecaa3f68 100644
--- a/src/fe-common/irc/dcc/fe-dcc-send.c
+++ b/src/fe-common/irc/dcc/fe-dcc-send.c
@@ -21,6 +21,8 @@
#include "module.h"
#include "signals.h"
#include "levels.h"
+#include "misc.h"
+#include "settings.h"
#include "dcc-file.h"
#include "dcc-send.h"
@@ -101,6 +103,8 @@ static void sig_dcc_send_complete(GList **list, WINDOW_REC *window,
const char *word, const char *line,
int *want_space)
{
+ char *path;
+
g_return_if_fail(list != NULL);
g_return_if_fail(word != NULL);
g_return_if_fail(line != NULL);
@@ -109,7 +113,10 @@ static void sig_dcc_send_complete(GList **list, WINDOW_REC *window,
return;
/* completing filename parameter for /DCC SEND */
- *list = filename_complete(word, NULL);
+ path = convert_home(settings_get_str("dcc_upload_path"));
+ *list = filename_complete(word, path);
+ g_free(path);
+
if (*list != NULL) {
*want_space = FALSE;
signal_stop();