summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules <jules@asdf.us>2015-01-20 17:44:27 -0500
committerJules <jules@asdf.us>2015-01-20 17:44:27 -0500
commit0772ee0c24460e815f02621cc7142fff0061de58 (patch)
tree2708053ea7c00c6f7101ed7df3bea37ec47f314f
parentb21b12de15bdcba857e2d5e078e6d70a9988b52e (diff)
troubleshooting
-rw-r--r--xdcc.pl7
1 files 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;
}