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.