mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 12:32:37 +01:00
Remove redundant "Loading ..." log messages
This commit is contained in:
parent
5f35d48c73
commit
00eac49ca9
@ -102,22 +102,18 @@ sub load_admins {
|
||||
return;
|
||||
}
|
||||
|
||||
$self->{pbot}->{logger}->log("Loading admins from $filename ...\n");
|
||||
|
||||
$self->{admins}->load;
|
||||
|
||||
my $i = 0;
|
||||
|
||||
foreach my $channel (keys %{ $self->{admins}->hash } ) {
|
||||
foreach my $hostmask (keys %{ $self->{admins}->hash->{$channel} }) {
|
||||
$i++;
|
||||
|
||||
my $name = $self->{admins}->hash->{$channel}->{$hostmask}->{name};
|
||||
my $level = $self->{admins}->hash->{$channel}->{$hostmask}->{level};
|
||||
my $password = $self->{admins}->hash->{$channel}->{$hostmask}->{password};
|
||||
|
||||
if (not defined $name or not defined $level or not defined $password) {
|
||||
Carp::croak "Syntax error around line $i of $filename\n";
|
||||
Carp::croak "Admin #$i of $filename is missing critical data\n";
|
||||
}
|
||||
|
||||
$self->{pbot}->{logger}->log("Adding new level $level admin: [$name] [$hostmask] for channel [$channel]\n");
|
||||
|
@ -74,12 +74,9 @@ sub initialize {
|
||||
sub load_factoids {
|
||||
my $self = shift;
|
||||
|
||||
$self->{pbot}->{logger}->log("Loading factoids from " . $self->{factoids}->filename . " ...\n");
|
||||
|
||||
$self->{factoids}->load;
|
||||
|
||||
my ($text, $regex, $modules);
|
||||
|
||||
foreach my $channel (keys %{ $self->{factoids}->hash }) {
|
||||
foreach my $trigger (keys %{ $self->{factoids}->hash->{$channel} }) {
|
||||
$self->{pbot}->{logger}->log("Missing type for $channel->$trigger\n") if not $self->{factoids}->hash->{$channel}->{$trigger}->{type};
|
||||
@ -88,7 +85,6 @@ sub load_factoids {
|
||||
$modules++ if $self->{factoids}->hash->{$channel}->{$trigger}->{type} eq 'module';
|
||||
}
|
||||
}
|
||||
|
||||
$self->{pbot}->{logger}->log(" " . ($text + $regex + $modules) . " factoids loaded ($text text, $regex regexs, $modules modules).\n");
|
||||
$self->add_default_factoids();
|
||||
}
|
||||
|
@ -46,11 +46,7 @@ sub initialize {
|
||||
|
||||
sub load {
|
||||
my $self = shift;
|
||||
|
||||
$self->{pbot}->{logger}->log("Loading registry from " . $self->{registry}->{filename} . " ...\n");
|
||||
|
||||
$self->{registry}->load;
|
||||
|
||||
foreach my $section (keys %{ $self->{registry}->hash }) {
|
||||
foreach my $item (keys %{ $self->{registry}->hash->{$section} }) {
|
||||
$self->process_trigger($section, $item, $self->{registry}->hash->{$section}->{$item}->{value});
|
||||
|
Loading…
Reference in New Issue
Block a user