mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-19 10:29:30 +01:00
Removed extra logging information
This commit is contained in:
parent
0c56527da0
commit
e6f9296010
@ -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;
|
||||||
|
@ -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",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user