]> git.donarmstrong.com Git - infobot.git/commitdiff
minor change
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 6 Sep 2000 15:00:48 +0000 (15:00 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 6 Sep 2000 15:00:48 +0000 (15:00 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@75 c11ca15a-4712-0410-83d8-924469b57eb5

src/Factoids/Update.pl

index de5b83597b1ad83eeb3bc30e505d24d35ffba9f2..0d678695d0772fa363d301f2ff31f976ca7b3abb 100644 (file)
@@ -117,9 +117,7 @@ sub update {
            &setFactInfo($lhs, "factoid_value", $rhs);
        } else {                                # not "also"
            if ($correction_plausible) {        # "no, blah is ..."
-               my $author = &getFactInfo($lhs, "created_by");
-
-               &DEBUG("Update: check: '$author' == '$who' ?");
+               my $author = &getFactInfo($lhs, "created_by") || "";
 
                if (IsFlag("m") ne "m" and $author !~ /^\Q$who\E\!/i) {
                    &msg($who, "you can't change that factoid.");