- my $ref = DXUser->get($call);
- return (0, "User: $call not found") if !$ref;
-
- my @fields = $ref->fields;
- my $field;
- push @out, "User Information $call";
- foreach $field (@fields) {
- my $prompt = $ref->field_prompt($field);
- my $val = $ref->{$field};
- push @out, "$prompt: $val";
- }
+ $call = uc $call;
+ my $ref = DXUser->get_current($call);
+ if ($ref) {
+ @out = print_all_fields($self, $ref, "User Information $call");
+ } else {
+ push @out, "User: $call not found";
+ }
+ push @out, "" if @list > 1;