]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Factoids/Statement.pl
converted %{$blah{$blah}} to %{ $blah{$blah} }
[infobot.git] / src / Factoids / Statement.pl
index 9bfd6231f65f64efcc312afa2d382e848b448bc8..ed58a44800b193a5d1de32dcee50d2f5f4425674 100644 (file)
@@ -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";