spider/cmd/type.pl
minima 8e45a3dac2 1. Added talk mode so that I don't have to keep typing T <call> all the time.
2. fiddled around with storing of Debug messages a bit more.
3. bomb proofed the type command.
4. started the objectifying for talk, dx and announcements.
2000-07-30 11:16:12 +00:00

29 lines
437 B
Perl

#
# the type command, display bulls and files
#
# Copyright (c) 1999 Dirk Koopman G1TLH
#
# $Id$
#
my ($self, $line) = @_;
my @f = split /\s+/, $line;
my $root = "$main::root/packclus";
my @out;
my @file;
my @d;
my @slot;
if (@f) {
my $fn = lc $f[0];
$fn =~ s([^A-Za-z0-9_/])()g;
$fn =~ s(^/+)();
$root = "$root/$fn";
}
open(INP, $root) or return (1, $self->msg('e3', 'type', $f[0]));
@out = <INP>;
close(INP);
return (1, @out);