# [str] when should the bot bother learning new factoids.
# ADDRESSED -- only learn when addressed.
# HUNGRY -- learn irrelevent of addressing. this will catch
-# _everything_, use at your own risk. I tried this ages
-# ago and it caught quite funny responses but who knows
-# if my modifications will prevent this or not, perhaps
-# IsInvalid must be disabled?
+# _everything_, use at your own risk.
set learn ADDRESSED
# [str] different behaviour with URLs.
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");
# 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) {