2 # A module to allow a user to create and (eventually) edit arrays of
5 # This is used for creating mail messages and user script files
7 # It may be sub-classed
9 # Copyright (c) 2001 Dirk Koopman G1TLH
25 my $class = ref $pkg || $pkg;
33 return $self->new(%$self);
42 if (my @ans = BadWord::check($line)) {
43 return ($dxchan->msg('e17', @ans));
45 push @{$self->{lines}}, $line;
56 if (my @ans = BadWord::check($line)) {
57 return ($dxchan->msg('e17', @ans));
59 ${$self->{lines}}[$no] = $line;
66 return exists $self->{lines} ? (@{$self->{lines}}) : ();
72 return exists $self->{lines} ? scalar @{$self->{lines}} : 0;