X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXProt.pm;h=8985e8ab4a640a6f8409d213e4cef974a03d5999;hb=6a0068ec3df1dca0c6ae2714af3c0a4a62998dcf;hp=552468b92cf9ab22a0407a2fdd7ea77fcb2706fb;hpb=57b5e464bc44ae8eee23ab94c1f499f527595dc9;p=spider.git diff --git a/perl/DXProt.pm b/perl/DXProt.pm index 552468b9..8985e8ab 100644 --- a/perl/DXProt.pm +++ b/perl/DXProt.pm @@ -252,14 +252,17 @@ sub normal if ($pcno == 21) { # delete a cluster from the list my $call = uc $field[1]; - my $ref = DXCluster->get($call); - $ref->del() if $ref; + if ($call ne $main::mycall) { # don't allow malicious buggers to disconnect me! + my $ref = DXCluster->get($call); + $ref->del() if $ref; + } last SWITCH; } if ($pcno == 22) {last SWITCH;} if ($pcno == 23 || $pcno == 27) { # WWV info + Geomag::update(@field[1..$#field]); last SWITCH; } @@ -299,6 +302,7 @@ sub normal if ($pcno == 41) { # user info # add this station to the user database, if required + $field[1] =~ s/-\d+$//o; my $user = DXUser->get_current($field[1]); $user = DXUser->new($field[1]) if !$user;