Subject: | Can't locate object method "handler" |
Hi,
this bug was originally reported as Debian bug #303400, http://bugs.debian.org/303400. Quoting:
I do a dcc chat request with a:
$conn->new_chat(1,'knotty');
When knotty accept the dcc chat, I get a:
(in cleanup) Can't locate object method "handler" via package "Net::IRC::DCC::CHAT" at /usr/share/perl5/Net/IRC/DCC.pm line 149.
I have verified this in Net::IRC 0.75, Perl 5.8.4 and Perl 5.8.7. It seems to happen because
NET::IRC::DCC::CHAT::new() calls Net::IRC::DCC::Accept->new() with itself as the 'container' argument, leading to the _parent property in the Accept object being the CHAT object.
When the Accept object is destroyed, the DESTROY method tries to call 'handler()' through its parent, the CHAT object.
Simple patch attached.
Cheers,
--
Niko Tyni
ntyni@iki.fi
Message body not shown because it is not plain text.