summaryrefslogtreecommitdiff
path: root/src/plugins/xfer/xfer-file.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-05-07 14:34:10 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-05-07 14:34:10 +0200
commitf71c190a975ea6836fa79e90124fb3dd14a6b05b (patch)
treeaa9a42c11964f759f3e9e16f514e6e10c747416d /src/plugins/xfer/xfer-file.c
parentb0e88590b9910c08b14820618cce86249bea91b4 (diff)
downloadweechat-f71c190a975ea6836fa79e90124fb3dd14a6b05b.zip
New option "xfer.file.use_nick_in_filename" for Xfer files (task #7140)
Diffstat (limited to 'src/plugins/xfer/xfer-file.c')
-rw-r--r--src/plugins/xfer/xfer-file.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/xfer/xfer-file.c b/src/plugins/xfer/xfer-file.c
index fd72a8840..5e4841c54 100644
--- a/src/plugins/xfer/xfer-file.c
+++ b/src/plugins/xfer/xfer-file.c
@@ -111,8 +111,11 @@ xfer_file_find_filename (struct t_xfer *xfer)
if (dir_separator
&& (xfer->local_filename[strlen (xfer->local_filename) - 1] != dir_separator[0]))
strcat (xfer->local_filename, dir_separator);
- strcat (xfer->local_filename, xfer->remote_nick);
- strcat (xfer->local_filename, ".");
+ if (weechat_config_boolean (xfer_config_file_use_nick_in_filename))
+ {
+ strcat (xfer->local_filename, xfer->remote_nick);
+ strcat (xfer->local_filename, ".");
+ }
strcat (xfer->local_filename, xfer->filename);
if (dir1)