]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Factoids/Statement.pl
- another round of patches from lear. "we love you, lear!" j/k :o
[infobot.git] / src / Factoids / Statement.pl
index ae0ffa4b6f78292d88c7d1909f08b75aab289212..edd69cf179441edd25b31d6001a1bfa79746f734 100644 (file)
@@ -55,6 +55,9 @@ sub doStatement {
     if ($in =~ /(^|\s)(is|are)(\s|$)/i) {
        my($lhs, $mhs, $rhs) = ($`, $&, $');
 
+       # allows factoid arguments to be updated. -lear.
+       $lhs =~ s/^(CMD: )?(.*)/$1 . lc $2/e;
+
        $lhs =~ tr/A-Z/a-z/;
        $lhs =~ s/^(the|da|an?)\s+//i; # discard article