From 3aa0982baf8cfd6f116a3f35faf3abdc7399e104 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 19 Jun 2010 17:37:16 +0000 Subject: [PATCH] Removed extra logging information; limited "yourself" check to one word --- PBot/Interpreter.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/PBot/Interpreter.pm b/PBot/Interpreter.pm index 297ea117..9741e5b2 100644 --- a/PBot/Interpreter.pm +++ b/PBot/Interpreter.pm @@ -189,9 +189,7 @@ sub interpret { $arguments =~ s/\bme\b/\$nick/gi if defined $arguments; $arguments =~ s/\/\$nick/\/me/gi if defined $arguments; - $pbot->logger->log("keyword: [$keyword], arguments: [" . (defined $arguments ? $arguments : "(undef)") . "], tonick: [" . (defined $tonick ? $tonick : "(undef)") . "]\n"); - - if(defined $arguments && $arguments =~ m/\b(your|him|her|its|it|them|their)(self|selves)\b/i) { + if(defined $arguments && $arguments =~ m/^(your|him|her|its|it|them|their)(self|selves)$/i) { return "Why would I want to do that to myself?"; }