From 0772ee0c24460e815f02621cc7142fff0061de58 Mon Sep 17 00:00:00 2001 From: Jules Date: Tue, 20 Jan 2015 17:44:27 -0500 Subject: troubleshooting --- xdcc.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xdcc.pl b/xdcc.pl index 4f19fce..33146c0 100644 --- a/xdcc.pl +++ b/xdcc.pl @@ -570,9 +570,10 @@ sub dcc_created { if (lc $dcc->{'type'} eq "send") { if ($timeout) { Irssi::timeout_remove($timeout) } $timeout = Irssi::timeout_add_once($bother_delay, \&xdcc_bother, { dcc => $dcc, times => 1 }); - #$current_dcc = $dcc; + # xdcc_log("sending file.."); + $current_dcc = $dcc; } - elsif (lc $dcc->{'type'} eq "get") { + elsif (lc $dcc->{'type'} eq "get" && scalar @channels) { if (xdcc_is_trusted($dcc->{'server'}, $dcc->{'nick'})) { # all is well... } @@ -618,7 +619,7 @@ sub dcc_destroyed { sub dcc_connected { # Irssi::printformat(MSGLEVEL_CLIENTCRAP, 'xdcc_log', 'dcc connected'); my ($dcc) = @_; - if ($dcc->{'type'} eq "send" && $timeout) { + if (lc $dcc->{'type'} eq "send" && $timeout) { Irssi::timeout_remove($timeout); undef $timeout; } -- cgit v1.2.3-70-g09d2