From: timriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Date: Tue, 20 Jul 2004 21:17:11 +0000 (+0000)
Subject: factoid msg cleanups
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d773b897e472c81322de8a400aef07706472de45;p=infobot.git

factoid msg cleanups


git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1010 c11ca15a-4712-0410-83d8-924469b57eb5
---

diff --git a/blootbot/src/Factoids/Core.pl b/blootbot/src/Factoids/Core.pl
index 2e79107..4c896d6 100644
--- a/blootbot/src/Factoids/Core.pl
+++ b/blootbot/src/Factoids/Core.pl
@@ -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;