move ganerated stuff to local_data
[spider.git] / cmd / export_users.pl
index 4c143ebbf43c80776bff8e65e616513f64f52057..a7a2c6ec50fe06c35d16308022801cbbb7b03f3e 100644 (file)
@@ -1,9 +1,12 @@
 #
 # the export the user file to ascii command
 #
-# $Id$
+#
 #
 my $self = shift;
+my $line = shift || localdata("user_asc");
 return (1, $self->msg('e5')) unless $self->priv >= 9;
-my $line = shift || "$main::data/user_asc";
-return (1, DXUser::export($line));
+
+my ($fn, $flag) = split /\s+/, $line;
+my $strip = $flag eq 'strip';
+return (1, DXUser::export($fn, $strip));