]> git.donarmstrong.com Git - infobot.git/commitdiff
help and working multi request
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Thu, 21 Nov 2002 09:44:46 +0000 (09:44 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Thu, 21 Nov 2002 09:44:46 +0000 (09:44 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@645 c11ca15a-4712-0410-83d8-924469b57eb5

files/blootbot.help
src/Modules/Quote.pl

index 1c1a92d6935e52e9c0a555ebf6fcf4d4243df691..01dfaeb53bd7c790cc1748f313b21bd4e5707157 100644 (file)
@@ -131,8 +131,8 @@ listvalues: U: ## <regex>
 listvalues: E: ## blootbot
 
 quote: D: Frontend to yahoo's online stock market share listing
-quote: U: ## <query>
-quote: E: ## RHAT
+quote: U: ## <query...>
+quote: E: ## RHAT,MSFT
 
 topic add: D: Add your own topic
 topic add: U: ## <topic>
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, " .