]> git.donarmstrong.com Git - infobot.git/blobdiff - blootbot/src/Factoids/Statement.pl
enable factoids with whitespace if HUNGRY
[infobot.git] / blootbot / src / Factoids / Statement.pl
index b02a4daf1bf4412c2de24009bc237a7797863c26..d2c29fe2b067f4f92c098f9501a7c454a58ee6a1 100644 (file)
@@ -80,7 +80,9 @@ sub doStatement {
            return;
        }
 
-       return if (!$addressed and $lhs =~ /\s+/);
+       # uncomment to prevent HUNGRY learning of rhs with whitespace
+       #return if (!$addressed and $lhs =~ /\s+/);
+       &::DEBUG("doStatement: $in:$lhs:$mhs:$rhs");
 
        &status("statement: <$who> $message");
 
@@ -92,7 +94,7 @@ sub doStatement {
 
        # verify the update statement whether there are any weird
        # characters.
-       ### this chan be simplified.
+       ### this can be simplified.
        foreach (split //, $lhs.$rhs) {
            my $ord = ord $_;
            if ($ord > 170 and $ord < 220) {