]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Modules/Units.pl
handle negative units
[infobot.git] / src / Modules / Units.pl
index 79e50b3aed777b6a79475ab03a9a0376af173151..fc88317ae1b8b3b9aade09b29ef2b38d595d70e4 100644 (file)
@@ -15,7 +15,7 @@ sub convertUnits {
     }
 
     my $units = new IO::File;
-    open $units, '-|', 'units', $from, $to
+    open $units, '-|', 'units', '--', $from, $to
       or &::DEBUG("Unable to run units: $!")
       and return;
     my $response = readline($units);