]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Factoids/Update.pl
- irctextcounters: add percentage to top3
[infobot.git] / src / Factoids / Update.pl
index e94a7b7108a6ae1ed4746aa9dfa9b382b26595dc..68c0cfc7c1c4daa2a45ace0f1cdfb70d5b81351f 100644 (file)
@@ -55,7 +55,7 @@ sub update {
     # freshmeat
     if (&IsChanConf("freshmeatForFactoid")) {
        # todo: "name" is invalid for fm ][
-       if (&dbGet("freshmeat", "name", "name='$lhs'")) {
+       if ( &dbGet("freshmeat", "name", "name=".&dbQuote($lhs)) ) {
            &msg($who, "permission denied. (freshmeat)");
            &status("alert: $who wanted to teach me something that freshmeat already has info on.");
            return 1;
@@ -205,7 +205,7 @@ sub update {
                &performStrictReply("...but \002$lhs\002 is already something else...");
                &status("FAILED update: <$who> \'$lhs\' =$mhs=> \'$rhs\'");
            }
-           return;
+           return 1;
        }
 
        my $author = &getFactInfo($lhs, "created_by") || "";