diff options
| author | Alex Checca | 2016-01-20 20:51:15 -0500 |
|---|---|---|
| committer | Alex Checca | 2016-01-20 20:51:15 -0500 |
| commit | 910eef851a0aae8d0ebd30b5c8a4bd6fe32a14ef (patch) | |
| tree | 6824ed2d13bd8a356e02d6dec17fb1f9b7f2319f /scripts | |
| parent | 53e2ce6eb04327659c894b0a42676ebb044604fb (diff) | |
| download | scripts.irssi.org-910eef851a0aae8d0ebd30b5c8a4bd6fe32a14ef.tar.bz2 | |
removed ugly try catch
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/xdcc_autoget.pl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/xdcc_autoget.pl b/scripts/xdcc_autoget.pl index ed5e206..fc1d7db 100644 --- a/scripts/xdcc_autoget.pl +++ b/scripts/xdcc_autoget.pl @@ -408,9 +408,7 @@ sub ag_opendcc #runs on DCC recieve init sub ag_skip { my($botcounter) = @_; - my @packlist = (); - try {my @packlist = @{$packs[$botcounter]};} #workaround for @{} being dumb if an array inside of an array is empty - catch {}; + my @packlist = @{$packs[$botcounter]//[]}; #if $packs[botcounter] is undefined, pass an empty array reference ag_remtimeouts($botcounter); #stop any other skips $reqpackflag[$botcounter] = 0; #allow pack requests now that transfer is finished if($episodicflag) |
