summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/xdcc_autoget.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/xdcc_autoget.pl b/scripts/xdcc_autoget.pl
index 323f6d5..c097b1e 100644
--- a/scripts/xdcc_autoget.pl
+++ b/scripts/xdcc_autoget.pl
@@ -500,7 +500,7 @@ sub ag_parseadd #parses add arguments for storage
print FILE $arg . "\n"; #print to file
}
close(FILE);
- copy($file, "/tmp/temp") or croak "COPY FAILED"; #copy to temp file so that duplicate lines [searches/bots] can be removed
+ copy($file, "/tmp/temp"); #copy to temp file so that duplicate lines [searches/bots] can be removed
unlink "$file";
open(TEMP, "<", "/tmp/temp");
open(FILE, ">", $file);
@@ -543,8 +543,8 @@ sub ag_parserem #parses remove arguments for deletion from file
close(TEMP);
}
close(TEMP2);
- copy("/tmp/temp2", $file) or croak "COPY FAILED"; #rewrite old file
- copy($file, "/tmp/temp") or croak "COPY FAILED";
+ copy("/tmp/temp2", $file); #rewrite old file
+ copy($file, "/tmp/temp");
unlink "$file";
open(TEMP, "<", "/tmp/temp");
open(SEARCHES, ">", $file);