]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Factoids/Statement.pl
remove Berkeley DBM support
[infobot.git] / src / Factoids / Statement.pl
index 6af6dc3086471d31efa4bfbd8eb95447b1931ad7..b02a4daf1bf4412c2de24009bc237a7797863c26 100644 (file)
@@ -6,14 +6,14 @@
 ##  doStatement --
 ##
 ##     decide if $in is a statement, and if so,
-##             - update the dbm
+##             - update the db
 ##             - return feedback statement
 ##
 ##     otherwise return
 ##             - null for confused.
 ##
 
-if (&IsParam("useStrict")) { use strict; }
+# use strict;  # TODO
 
 sub doStatement {
     my($in) = @_;
@@ -56,7 +56,7 @@ sub doStatement {
        my($lhs, $mhs, $rhs) = ($`, $&, $');
 
        # allows factoid arguments to be updated. -lear.
-#      $lhs =~ s/^(CMD: )?(.*)/$1 . lc $2/e;
+       $lhs =~ s/^(CMD: )?(.*)/$1||"" . lc $2/e;
 
        # discard article.
        $lhs =~ s/^(the|da|an?)\s+//i;