mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 22:09:26 +01:00
Reduce ban-tracker verbosity by putting "Getting baninfo" log messages in a debug block
This commit is contained in:
parent
bb5c825aab
commit
0b9513ca2e
@ -35,6 +35,7 @@ sub initialize {
|
||||
$self->{banlist} = {};
|
||||
|
||||
$self->{pbot}->{registry}->add_default('text', 'bantracker', 'chanserv_ban_timeout', '604800');
|
||||
$self->{pbot}->{registry}->add_default('text', 'bantracker', 'debug', '0');
|
||||
|
||||
$self->{pbot}->{commands}->register(sub { $self->dumpbans(@_) }, "dumpbans", 60);
|
||||
|
||||
@ -97,7 +98,9 @@ sub get_baninfo {
|
||||
$account = undef if $account eq '-1';
|
||||
$account = lc $account if defined $account;
|
||||
|
||||
$self->{pbot}->{logger}->log("[get-baninfo] Getting baninfo for $mask in $channel using account " . (defined $account ? $account : "[undefined]") . "\n");
|
||||
if ($self->{pbot}->{registry}->get_value('bantracker', 'debug')) {
|
||||
$self->{pbot}->{logger}->log("[get-baninfo] Getting baninfo for $mask in $channel using account " . (defined $account ? $account : "[undefined]") . "\n");
|
||||
}
|
||||
|
||||
foreach my $mode (keys %{ $self->{banlist}{$channel} }) {
|
||||
foreach my $banmask (keys %{ $self->{banlist}{$channel}{$mode} }) {
|
||||
|
@ -13,7 +13,7 @@ use warnings;
|
||||
# These are set automatically by the build/commit script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 804,
|
||||
BUILD_REVISION => 805,
|
||||
BUILD_DATE => "2014-12-26",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user