X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?p=spider.git;a=blobdiff_plain;f=perl%2FDXProtout.pm;h=4f2e8deac98e22e735b0bee7bf961f78b289679a;hp=7857daa2b76ec9300ba2454f6e2d46dece01990c;hb=171a7a0bf86e9732a33c7829e808129ec01c51c2;hpb=0824a94355e5fb2b4c379bb013d66466725629f5 diff --git a/perl/DXProtout.pm b/perl/DXProtout.pm index 7857daa2..4f2e8dea 100644 --- a/perl/DXProtout.pm +++ b/perl/DXProtout.pm @@ -22,13 +22,12 @@ use strict; # All the PCxx generation routines # -# create a talk string (called $self->pc10(...) +# create a talk string ($from, $to, $via, $text) sub pc10 { - my ($self, $to, $via, $text) = @_; + my ($from, $to, $via, $text) = @_; my $user2 = $via ? $to : ' '; my $user1 = $via ? $via : $to; - my $from = $self->call(); $text = unpad($text); $text = ' ' if !$text; return "PC10^$from^$user1^$text^*^$user2^$main::mycall^~"; @@ -47,13 +46,13 @@ sub pc11 # create an announce message sub pc12 { - my ($self, $text, $tonode, $sysop, $wx) = @_; + my ($call, $text, $tonode, $sysop, $wx) = @_; my $hops = get_hops(12); $sysop = ' ' if !$sysop; $text = ' ' if !$text; $wx = '0' if !$wx; $tonode = '*' if !$tonode; - return "PC12^$self->{call}^$tonode^$text^$sysop^$main::mycall^$wx^$hops^~"; + return "PC12^$call^$tonode^$text^$sysop^$main::mycall^$wx^$hops^~"; } #