diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-01-16 09:40:10 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-01-16 09:40:10 -0500 |
| commit | d1db4ecc9ace480709b84f9b6f0cf64148a8fc9a (patch) | |
| tree | 26e72794a5322d10ec32fa0818172064d6e6eb68 | |
| parent | fb5aa9f1050543006a3f840f987a0f60da31ed27 (diff) | |
substr
| -rwxr-xr-x | xdcc.pl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -187,7 +187,7 @@ sub xdcc_report { } sub xdcc_add { my ($path, $desc) = @_; - if ($path[0] == "~") { + if (substr($path, 0, 1) eq "~") { $path =~ s/^~//; $path = $ENV{"HOME"} . $path; } |
