From 3118cee10fadd44c22e740c8e67f8d8361550f28 Mon Sep 17 00:00:00 2001 From: timriker Date: Tue, 20 Jul 2004 21:17:11 +0000 Subject: [PATCH] factoid msg cleanups git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1010 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/Factoids/Core.pl | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/Factoids/Core.pl b/src/Factoids/Core.pl index 2e79107..4c896d6 100644 --- a/src/Factoids/Core.pl +++ b/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; -- 2.39.2