diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-01-16 09:39:05 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-01-16 09:39:05 -0500 |
| commit | fb5aa9f1050543006a3f840f987a0f60da31ed27 (patch) | |
| tree | 70290ec7b357a04df39527e51a085d5e119253a1 | |
| parent | 0adfe51141855502d699fde17c6ba91fd0fffe95 (diff) | |
fix path
| -rwxr-xr-x | xdcc.pl | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -187,6 +187,10 @@ sub xdcc_report { } sub xdcc_add { my ($path, $desc) = @_; + if ($path[0] == "~") { + $path =~ s/^~//; + $path = $ENV{"HOME"} . $path; + } if (! -e $path) { Irssi::printformat(MSGLEVEL_CLIENTCRAP, 'xdcc_file_not_found'); return; |
