File: 40handler.diff

package info (click to toggle)
libnet-irc-perl 0.75-8
  • links: PTS, VCS
  • area: main
  • in suites: lenny, squeeze, wheezy
  • size: 264 kB
  • ctags: 165
  • sloc: perl: 2,290; makefile: 38
file content (13 lines) | stat: -rw-r--r-- 623 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: libnet-irc-perl/DCC.pm
===================================================================
--- libnet-irc-perl.orig/DCC.pm	2008-01-24 15:43:38.000000000 +0200
+++ libnet-irc-perl/DCC.pm	2008-01-24 16:38:14.000000000 +0200
@@ -145,7 +145,7 @@
     # Only do the Disconnection Dance of Death if the socket is still
     # live. Duplicate dcc_close events would be a Bad Thing.
     
-    if ($self->{_socket}->opened) {
+    if ($self->{_socket}->opened and $self->{_parent}->can('handler')) {
 	$self->{_parent}->handler(Net::IRC::Event->new('dcc_close',
 						       $self->{_nick},
 						       $self->{_socket},