From: minima Date: Mon, 22 Jan 2007 23:08:51 +0000 (+0000) Subject: bounce invalid pc41s back X-Git-Tag: 1.54~13 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=d574e297e8a9d56ee1d4337b80f88ef38b179512;p=spider.git bounce invalid pc41s back --- diff --git a/perl/DXProtHandle.pm b/perl/DXProtHandle.pm index 45b61b3e..641299d3 100644 --- a/perl/DXProtHandle.pm +++ b/perl/DXProtHandle.pm @@ -571,7 +571,7 @@ sub handle_17 # input filter if required and then remove user if present # return unless $self->in_filter_route($parent); - $parent->del_user($uref) if $uref; + $parent->del_user($uref); # send info to all logged in thingies $self->tell_login('logoutu', "$ncall: $ucall") if DXUser->get_current($ncall)->is_local_node; @@ -1146,6 +1146,13 @@ sub handle_41 $user = DXUser->new($call) unless $user; if ($_[2] == 1) { + if (($_[3] =~ /spotter/i || $_[3] =~ /self/i) && $user->name && $user->name ne $_[3]) { + dbg("PCPROT: invalid name") if isdbg('chanerr'); + if ($main::mycall eq 'GB7DJK' || $main::mycall eq 'GB7BAA' || $main::mycall eq 'WR3D') { + DXChannel::broadcast_nodes(pc41($_[1], 1, $user->name)); # send it to everyone including me + } + return; + } $user->name($_[3]); } elsif ($_[2] == 2) { $user->qth($_[3]);