X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FIntMsg.pm;h=4361b7b59c13a50c84e3e86e4cc561ae9aba719c;hb=a24cc09d8262093df92c767d3010c0a5fd6e42d7;hp=95c6ac74347793ce9f38f27d8af303bbe1265930;hpb=6db883c129fb84bbf067861a1def1fd8120a32c8;p=spider.git diff --git a/perl/IntMsg.pm b/perl/IntMsg.pm index 95c6ac74..4361b7b5 100644 --- a/perl/IntMsg.pm +++ b/perl/IntMsg.pm @@ -2,7 +2,7 @@ # This class is the internal subclass that deals with the internal port 27754 # communications for Msg.pm # -# $Id$ +# # # Copyright (c) 2001 - Dirk Koopman G1TLH # @@ -11,18 +11,17 @@ package IntMsg; 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 Msg; use vars qw(@ISA); @ISA = qw(Msg); +sub login +{ + goto &main::login; # save some writing, this was the default +} + sub enqueue { my ($conn, $msg) = @_; @@ -41,6 +40,8 @@ sub dequeue } else { $conn->{msg} =~ s/([^\cM\cJ]*)\cM?\cJ//g; } + $conn->{linesin} += @lines; + $Msg::total_lines_in += @lines; for (@lines) { if (defined $_) { s/\%([0-9A-F][0-9A-F])/chr(hex($1))/eg;