mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 22:09:26 +01:00
Removed extra logging information; limited "yourself" check to one word
This commit is contained in:
parent
41bb89eba2
commit
3aa0982baf
@ -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?";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user