From d574e297e8a9d56ee1d4337b80f88ef38b179512 Mon Sep 17 00:00:00 2001 From: minima Date: Mon, 22 Jan 2007 23:08:51 +0000 Subject: [PATCH] bounce invalid pc41s back --- perl/DXProtHandle.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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]); -- 2.43.0