# break if either lhs or rhs is NULL.
if ($lhs eq "" or $rhs eq "") {
- return;
+ return "NOT-A-STATEMENT";
}
# lets check if it failed.
if (&validFactoid($lhs,$rhs) == 0) {
if ($addressed) {
&status("IGNORE statement: <$who> $message");
- &performReply( &getRandom(keys %{$lang{'confused'}}) );
+ &performReply( &getRandom(keys %{ $lang{'confused'} }) );
}
return;
}
}
}
- if (&update($lhs, $mhs, $rhs)) {
- return; # success.
- }
+ # success.
+ return if (&update($lhs, $mhs, $rhs));
}
return "CONTINUE";