]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Factoids/Reply.pl
standard TODO: and FIXME:
[infobot.git] / src / Factoids / Reply.pl
index 14bc57457e88cdc2e5441f3bae18bf26bab9b27e..4c8a44dc864646341a882d65e6a256e9e4196dae 100644 (file)
@@ -27,8 +27,9 @@ sub getReply {
     }
 
     $message =~ tr/A-Z/a-z/;
+    $message =~ s/^cmd:/CMD:/;
 
-    my ($count, $fauthor, $result) = &sqlSelect("factoids", 
+    my ($count, $fauthor, $result) = &sqlSelect("factoids",
        "requested_count,created_by,factoid_value",
        { factoid_key => $message }
     );
@@ -70,7 +71,7 @@ sub getReply {
                requested_count => $count
        } );
 
-       # todo: rename $real to something else!
+       # TODO: rename $real to something else!
        my $real   = 0;
 #      my $author = &getFactInfo($lhs,"created_by") || '';
 #      $real++ if ($author =~ /^\Q$who\E\!/);
@@ -239,7 +240,7 @@ sub substVars {
     my($reply,$flag) = @_;
 
     # $date, $time.
-    # todo: support localtime.
+    # TODO: support localtime.
     my $date   =  scalar(gmtime());
     $date      =~ s/\:\d+(\s+\w+)\s+\d+$/$1/;
     $reply     =~ s/\$date/$date/gi;