summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Command/UserControl.pm
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-06-25 04:11:30 +0000
committerfukachan <fukachan>2002-06-25 04:11:30 +0000
commit8dc07abfa787e649fe3e013335087a867c229b7f (patch)
tree655750fe642b1be11c43c01ee428e3712df69eb5 /fml/lib/FML/Command/UserControl.pm
parent2d851e13f11af1f299db6e2d3e8a7ab63521d134 (diff)
downloadfml8-8dc07abfa787e649fe3e013335087a867c229b7f.tar.gz
fml8-8dc07abfa787e649fe3e013335087a867c229b7f.tar.bz2
fml8-8dc07abfa787e649fe3e013335087a867c229b7f.zip
userlist: print $addr, <br> if under CGI
Diffstat (limited to 'fml/lib/FML/Command/UserControl.pm')
-rw-r--r--fml/lib/FML/Command/UserControl.pm12
1 files changed, 10 insertions, 2 deletions
diff --git a/fml/lib/FML/Command/UserControl.pm b/fml/lib/FML/Command/UserControl.pm
index 1f73fee0..6211de84 100644
--- a/fml/lib/FML/Command/UserControl.pm
+++ b/fml/lib/FML/Command/UserControl.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: UserControl.pm,v 1.6 2002/06/21 07:53:03 fukachan Exp $
+# $FML: UserControl.pm,v 1.7 2002/06/21 09:25:39 fukachan Exp $
#
package FML::Command::UserControl;
@@ -115,6 +115,7 @@ sub userlist
my ($self, $curproc, $command_args, $uc_args) = @_;
my $maplist = $uc_args->{ maplist };
my $wh = $uc_args->{ wh };
+ my $is_cgi = 1 if defined $uc_args->{ is_cgi } && $uc_args->{ is_cgi };
for my $map (@$maplist) {
my $obj = new IO::Adapter $map;
@@ -122,7 +123,14 @@ sub userlist
if (defined $obj) {
my $x = '';
$obj->open;
- while ($x = $obj->get_next_key()) { print $wh $x, "\n"; }
+ while ($x = $obj->get_next_key()) {
+ if ($is_cgi) {
+ print $wh $x, "<br>\n";
+ }
+ else {
+ print $wh $x, "\n";
+ }
+ }
$obj->close;
}
else {