]> git.donarmstrong.com Git - infobot.git/commitdiff
factoid msg cleanups
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 20 Jul 2004 21:17:11 +0000 (21:17 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 20 Jul 2004 21:17:11 +0000 (21:17 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1010 c11ca15a-4712-0410-83d8-924469b57eb5

src/Factoids/Core.pl

index 2e79107c11c354cd5f04edb964b50736c3cf7e4c..4c896d6d0acc7741492aee3d05da5d2034f0f19d 100644 (file)
@@ -152,7 +152,7 @@ sub FactoidStuff {
 
        # if it doesn't exist, well... it doesn't!
        if (!defined $result) {
-           &performReply("i didn't have anything called '$faqtoid'");
+           &performReply("i didn't have anything called '$faqtoid' to forget");
            return;
        }
 
@@ -383,16 +383,14 @@ sub FactoidStuff {
            my ($from,$to) = (lc $1, lc $2);
 
            my $result = &getFactoid($from);
-           if (defined $result) {
-               &performReply("i didn't have anything called '$from'");
+           if (!defined $result) {
+               &performReply("i didn't have anything called '$from' to rename");
                return;
            }
 
-           my $author = &getFactInfo($from, "created_by");
-
            # who == nick!user@host.
            if (&IsFlag("m") ne "m" and $author !~ /^\Q$who\E\!/i) {
-               &msg($who, "factoid '$form' is not yours to modify.");
+               &msg($who, "factoid '$from' is not yours to modify.");
                return;
            }
 
@@ -450,7 +448,7 @@ sub FactoidStuff {
                &performReply("that doesn't contain '$op'");
            }
        } else {
-           &performReply("i didn't have anything called '$faqtoid'");
+           &performReply("i didn't have anything called '$faqtoid' to modify");
        }
 
        return;