X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FAMsg.pm;h=15596a98196958e3e2185e0d76cb09ca397f26da;hb=14cb55073f64836f3f2a1aaf3a86207dec4fa103;hp=f1a7112f5c2159e735d91525358d256ee7f7a0f0;hpb=3c772f881b05406e916a1bf959aa1266c7e216b9;p=spider.git diff --git a/perl/AMsg.pm b/perl/AMsg.pm index f1a7112f..15596a98 100644 --- a/perl/AMsg.pm +++ b/perl/AMsg.pm @@ -22,10 +22,8 @@ use Thingy; use Thingy::Hello; use vars qw($VERSION $BRANCH); -$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ ); -$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ || (0,0)); -$main::build += $VERSION; -$main::branch += $BRANCH; + +main::mkver($VERSION = q$Revision$); use vars qw(@ISA $deftimeout); @@ -71,7 +69,7 @@ sub dequeue # this is the first stage that we have a callsign # do we have a hello? $msg =~ s/[\r\n]+$//; - if ($msg =~ m{RT,[0-9A-F,]+|HELLO}) { + if ($msg =~ m{|HELLO,}) { # a possibly valid HELLO line, process it $conn->new_channel($msg); }