diff options
| author | fukachan <fukachan> | 2004-03-23 07:12:21 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2004-03-23 07:12:21 +0000 |
| commit | 7e41b50cc004ab32e46e9e4bfdbde6a7d4b5b1af (patch) | |
| tree | f8a49f4d4084dea7422159de8f4e264d78d7001d /fml/lib | |
| parent | 88d5b43d9435519f2928dd5ceab04af30f424c17 (diff) | |
| download | fml8-7e41b50cc004ab32e46e9e4bfdbde6a7d4b5b1af.tar.gz fml8-7e41b50cc004ab32e46e9e4bfdbde6a7d4b5b1af.tar.bz2 fml8-7e41b50cc004ab32e46e9e4bfdbde6a7d4b5b1af.zip | |
modified for "--allow-send-message --send-to=ADDRESS" option.
Diffstat (limited to 'fml/lib')
| -rw-r--r-- | fml/lib/FML/Command/DirUtils.pm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fml/lib/FML/Command/DirUtils.pm b/fml/lib/FML/Command/DirUtils.pm index 0c63e378..4caff5c8 100644 --- a/fml/lib/FML/Command/DirUtils.pm +++ b/fml/lib/FML/Command/DirUtils.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: DirUtils.pm,v 1.15 2003/08/29 15:33:57 fukachan Exp $ +# $FML: DirUtils.pm,v 1.16 2004/01/21 03:45:08 fukachan Exp $ # package FML::Command::DirUtils; @@ -61,6 +61,11 @@ sub dir my $path_ls = $config->{ path_ls }; my $argv = $du_args->{ argv }; my $opt_ls = ''; + my $rm_args = {}; + + # inherit reply_message information. + my $recipient = $command_args->{ recipient } || ''; + if ($recipient) { $rm_args->{ recipient } = $recipient;} # option: permit "ls [-A-Za-z]" syntax if (defined($du_args->{ opt_ls })) { @@ -99,7 +104,7 @@ sub dir my $fh = new FileHandle "$eval|"; if (defined $fh) { my $buf = undef; - while ($buf = <$fh>) { $curproc->reply_message($buf);} + while ($buf = <$fh>) { $curproc->reply_message($buf, $rm_args);} $fh->close(); } else { |
