X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fhomenode.pl;h=f2f8e6e7cbe7e432fec918ba25fea6b325d29f82;hb=681ed7b3c6d79228a68054489058b619f62974bf;hp=605c0c21063f4b9c07771542edf508e4bba3a95e;hpb=ab811a0c902225075a9bd69749f65594079433a9;p=spider.git diff --git a/cmd/set/homenode.pl b/cmd/set/homenode.pl index 605c0c21..f2f8e6e7 100644 --- a/cmd/set/homenode.pl +++ b/cmd/set/homenode.pl @@ -19,12 +19,14 @@ return (1, $self->msg('hnodee1')) if !$line; $user = DXUser::get_current($call); if ($user) { - $line = uc $line; - $user->homenode($line); - $user->put(); - my $s = DXProt::pc41($call, 4, $line); - DXProt::eph_dup($s); - DXChannel::broadcast_all_nodes($s, $main::me) ; + $line = uc unpad($line); + if ($user->homenode && $line ne $user->homenode) { + $user->homenode($line); + $user->put(); + my $s = DXProt::pc41($call, 4, $line); + DXProt::eph_dup($s); + DXChannel::broadcast_all_nodes($s, $main::me); + } return (1, $self->msg('hnode', $line)); } else { return (1, $self->msg('namee2', $call));