X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FEditable.pm;h=d2f15eeeb144543576316a4c904f929d90b1d3e0;hb=606b9690c7bb9e293cb4a03507f0280eea05d9ce;hp=86a951675cb94c8acb6cb7ecc278d4beaf03f2b0;hpb=e0cfa6eebc0cddc92fe3c45636e6f1f641edda1b;p=spider.git diff --git a/perl/Editable.pm b/perl/Editable.pm index 86a95167..d2f15eee 100644 --- a/perl/Editable.pm +++ b/perl/Editable.pm @@ -8,19 +8,13 @@ # # Copyright (c) 2001 Dirk Koopman G1TLH # -# $Id$ +# # package Editable; use strict; -use vars qw($VERSION $BRANCH); -$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ ); -$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ ) || 0; -$main::build += $VERSION; -$main::branch += $BRANCH; - use DXChannel; use DXDebug; use BadWords; @@ -45,7 +39,7 @@ sub addline my $dxchan = shift; my $line = shift; - if (my @ans = BadWord::check($line)) { + if (my @ans = BadWords::check($line)) { return ($dxchan->msg('e17', @ans)); } push @{$self->{lines}}, $line; @@ -59,7 +53,7 @@ sub modline my $no = shift; my $line = shift; - if (my @ans = BadWord::check($line)) { + if (my @ans = BadWords::check($line)) { return ($dxchan->msg('e17', @ans)); } ${$self->{lines}}[$no] = $line;