return $noreply;
}
- # nice 'are' hack (or work-around).
- if ($mhs =~ /^are$/i and $rhs !~ /<\S+>/) {
- $mhs = "is";
- $rhs = "<REPLY> are ". $rhs;
- }
-
# invalid verb.
- if ($mhs !~ /^is$/i) {
+ if ($mhs !~ /^(is|are)$/i) {
&ERROR("UNKNOWN verb: $mhs.");
return;
}
}
if (my $exists = &getFactoid($lhs)) { # factoid exists.
- chomp $exists;
-
if ($exists eq $rhs) {
&performAddressedReply("i already had it that way");
return $noreply;
}
}
} else { # not exists.
+
+ # nice 'are' hack (or work-around).
+ if ($mhs =~ /^are$/i and $rhs !~ /<\S+>/) {
+ &DEBUG("Update: 'are' hack detected.");
+ $mhs = "is";
+ $rhs = "<REPLY> are ". $rhs;
+ }
+
&status("enter: <$who> \'$lhs\' =$mhs=> \'$rhs\'");
$count{'Update'}++;