fix from_DXProt better
[spider.git] / perl / DXProt.pm
index 78c39f1635639091235e15a9b78b79e9172b6485..3001d6eb1b3cb8a9c4f7fe894ff3cf2ec5ae8115 100644 (file)
@@ -1541,15 +1541,14 @@ sub handle_51
        my $line = shift;
        my $origin = shift;
 
-       if (eph_dup($line)) {
+       if (eph_dup($line, 60)) {
                dbg("PCPROT: dup PC51 detected") if isdbg('chanerr');
                return;
        }
 
        my $thing = Thingy::Ping->new(origin=>$main::mycall);
-       $thing->from_DXProt(user=>$_[2], group=>$_[1], out=>$_[3], DXProt=>$line);
-       $thing->process($self);
-       
+       $thing->from_DXProt($self, $line, @_);
+       $thing->handle($self);
 }
 
 # dunno but route it