Skip Menu |

This queue is for tickets about the POE-Component-IRC CPAN distribution.

Report information
The Basics
Id: 15075
Status: resolved
Worked: 30 min
Priority: 0/
Queue: POE-Component-IRC

People
Owner: BINGOS [...] cpan.org
Requestors: stoeff [...] gmx.at
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 4.71
Fixed in: (no value)



Subject: Error in sub _dcc_failed function
if I make an dcc chat request to any user and i dont get any response (I guess within the dcc timeout time) the the IRCLIB dies in the _dcc_failed function I think there is a little check missing for checking the existence of the variables before they can be accessed. ... ........ elsif ($errnum == 0 and $self->{dcc}->{$id}->{type} eq "CHAT") { $self->_send_event( 'irc_dcc_done', $id, @{$self->{dcc}->{$id}}{ qw(nick type port file size done listenport clientaddr) } ); close $self->{dcc}->{$id}->{fh}; ##ERROR: fh doesnt exist put programm continues delete $self->{wheelmap}->{$self->{dcc}->{$id}->{wheel}->ID}; ##ERROR wheelmap doesnt exist and programm dies delete $self->{dcc}->{$id}->{wheel}; delete $self->{dcc}->{$id}; } so well i added just an existence check for those vars and it works now.