]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Modules/Quote.pl
help and working multi request
[infobot.git] / src / Modules / Quote.pl
index 61e2a805f099ed54520ba3315fc2e3a739ddb782..39e152180e6a9aa069899068c3b2e1c233cb7fd1 100644 (file)
@@ -30,7 +30,6 @@ sub Quote {
 
     my ($reply);
     foreach my $result (@results) {
-       chomp $result;
        # get rid of the quotes
        $result =~ s/\"//g;
 
@@ -38,7 +37,8 @@ sub Quote {
            $high, $low, $volume) = split(',',$result);
 
         # add some commas
-       my $newvol = commify($volume);
+        # "+ 0" removes trailing cr/lf/etc.
+       my $newvol = commify($volume + 0);
 
        $reply .= ' ;; ' if $reply;
        $reply .= "$ticker: $recent ($high/$low), $date $time, " .