]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Modules/Quote.pl
* support more dictionaries [dpkg specific]
[infobot.git] / src / Modules / Quote.pl
index de455bd87cd73fd187e3a5e89fb7784f573c573d..147c230662cb9943e1776b2ac83f8fd128540391 100644 (file)
@@ -36,8 +36,9 @@ sub Quote {
        my ($ticker, $recent, $date, $time, $change, $open,
            $high, $low, $volume) = split(',',$result);
 
-        # add some commas
-       my $newvol = commify($volume);
+       # add some commas
+       # "+ 0" removes trailing cr/lf/etc.
+       my $newvol = commify($volume + 0);
 
        $reply .= ' ;; ' if $reply;
        $reply .= "$ticker: $recent ($high/$low), $date $time, " .