mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 05:49:27 +01:00
IRC: do not debug PONG events
This commit is contained in:
parent
7da7883d9d
commit
21d06bc149
@ -508,12 +508,14 @@ sub handler {
|
|||||||
croak "Not enough arguments to handler()";
|
croak "Not enough arguments to handler()";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unless ($ev eq 'pong') {
|
||||||
print STDERR "--- Trying to handle event '$ev'.\n" if $self->{_debug};
|
print STDERR "--- Trying to handle event '$ev'.\n" if $self->{_debug};
|
||||||
|
|
||||||
if ($self->{_debug} > 1) {
|
if ($self->{_debug} > 1) {
|
||||||
use Data::Dumper;
|
use Data::Dumper;
|
||||||
print STDERR "ev: ", Dumper($ev), "\nevent: ", Dumper($event), "\n";
|
print STDERR "ev: ", Dumper($ev), "\nevent: ", Dumper($event), "\n";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
my $handler = undef;
|
my $handler = undef;
|
||||||
if (exists $self->{_handler}->{$ev}) { $handler = $self->{_handler}->{$ev}; }
|
if (exists $self->{_handler}->{$ev}) { $handler = $self->{_handler}->{$ev}; }
|
||||||
@ -535,7 +537,9 @@ sub handler {
|
|||||||
confess "Bad parameter passed to handler(): rp=$rp";
|
confess "Bad parameter passed to handler(): rp=$rp";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unless ($ev eq 'pong') {
|
||||||
print STDERR "--- Handler for '$ev' called.\n" if $self->{_debug};
|
print STDERR "--- Handler for '$ev' called.\n" if $self->{_debug};
|
||||||
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -25,8 +25,8 @@ use PBot::Imports;
|
|||||||
# These are set by the /misc/update_version script
|
# These are set by the /misc/update_version script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 4618,
|
BUILD_REVISION => 4619,
|
||||||
BUILD_DATE => "2023-02-09",
|
BUILD_DATE => "2023-02-13",
|
||||||
};
|
};
|
||||||
|
|
||||||
sub initialize {}
|
sub initialize {}
|
||||||
|
Loading…
Reference in New Issue
Block a user