diff options
| author | Jules <jules@asdf.us> | 2015-01-20 17:44:27 -0500 |
|---|---|---|
| committer | Jules <jules@asdf.us> | 2015-01-20 17:44:27 -0500 |
| commit | 0772ee0c24460e815f02621cc7142fff0061de58 (patch) | |
| tree | 2708053ea7c00c6f7101ed7df3bea37ec47f314f | |
| parent | b21b12de15bdcba857e2d5e078e6d70a9988b52e (diff) | |
troubleshooting
| -rw-r--r-- | xdcc.pl | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; } |
