X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fexport_users.pl;h=753a48facafa5b2cc74dd79b71e4cae8f13413fd;hb=601ea9fb47810209aeedef1a3041df5a916964f3;hp=4c143ebbf43c80776bff8e65e616513f64f52057;hpb=6c38bca91e6b75002e15cce29c45a894f675e22e;p=spider.git diff --git a/cmd/export_users.pl b/cmd/export_users.pl index 4c143ebb..753a48fa 100644 --- a/cmd/export_users.pl +++ b/cmd/export_users.pl @@ -1,9 +1,12 @@ # # the export the user file to ascii command # -# $Id$ +# # my $self = shift; +my $line = shift || "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));