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