3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-23 19:22:40 +01:00

Removed extra logging information

This commit is contained in:
Pragmatic Software 2010-06-19 17:38:14 +00:00
parent 0c56527da0
commit e6f9296010
2 changed files with 1 additions and 7 deletions

View File

@ -402,15 +402,11 @@ sub interpreter {
} }
if(defined $arguments) { if(defined $arguments) {
$self->{pbot}->logger->log("got arguments: [$arguments]\n");
# TODO - extract and remove $tonick from end of $arguments # TODO - extract and remove $tonick from end of $arguments
if(not $result =~ s/\$args/$arguments/gi) { if(not $result =~ s/\$args/$arguments/gi) {
$self->{pbot}->logger->log("factoid doesn't take argument, checking ...\n");
# factoid doesn't take an argument # factoid doesn't take an argument
if($arguments =~ /^[^ ]{1,20}$/) { if($arguments =~ /^[^ ]{1,20}$/) {
# might be a nick # might be a nick
$self->{pbot}->logger->log("could be nick\n");
if($result =~ /^\/.+? /) { if($result =~ /^\/.+? /) {
$result =~ s/^(\/.+?) /$1 $arguments: /; $result =~ s/^(\/.+?) /$1 $arguments: /;
} else { } else {
@ -421,9 +417,7 @@ sub interpreter {
$result =~ s/^/\/say $keyword is / unless (defined $tonick); $result =~ s/^/\/say $keyword is / unless (defined $tonick);
} }
} }
$self->{pbot}->logger->log("updated text: [$result]\n");
} }
$self->{pbot}->logger->log("replaced \$args: [$result]\n");
} else { } else {
# no arguments supplied # no arguments supplied
$result =~ s/\$args/$nick/gi; $result =~ s/\$args/$nick/gi;

View File

@ -13,7 +13,7 @@ use warnings;
# These are set automatically by the build/commit script # These are set automatically by the build/commit script
use constant { use constant {
BUILD_NAME => "PBot", BUILD_NAME => "PBot",
BUILD_REVISION => 179, BUILD_REVISION => 180,
BUILD_DATE => "2010-06-19", BUILD_DATE => "2010-06-19",
}; };