X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2FFactoids%2FStatement.pl;h=ed58a44800b193a5d1de32dcee50d2f5f4425674;hb=0e3df27228cf790fad3c3d9b6496db63c3ece37e;hp=9bfd6231f65f64efcc312afa2d382e848b448bc8;hpb=a523737c588a01cf74076ae2a3c06a669389ddcb;p=infobot.git diff --git a/src/Factoids/Statement.pl b/src/Factoids/Statement.pl index 9bfd623..ed58a44 100644 --- a/src/Factoids/Statement.pl +++ b/src/Factoids/Statement.pl @@ -72,7 +72,7 @@ sub doStatement { if (&validFactoid($lhs,$rhs) == 0) { if ($addressed) { &status("IGNORE statement: <$who> $message"); - &performReply( &getRandom(keys %{$lang{'confused'}}) ); + &performReply( &getRandom(keys %{ $lang{'confused'} }) ); } return; } @@ -99,7 +99,8 @@ sub doStatement { } } - return &update($lhs, $mhs, $rhs); + # success. + return if (&update($lhs, $mhs, $rhs)); } return "CONTINUE";