From fb5aa9f1050543006a3f840f987a0f60da31ed27 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 16 Jan 2015 09:39:05 -0500 Subject: fix path --- xdcc.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xdcc.pl b/xdcc.pl index 9d6717d..5ba18f2 100755 --- a/xdcc.pl +++ b/xdcc.pl @@ -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; -- cgit v1.2.3-70-g09d2