re-order the prompts and stuff
[spider.git] / cmd / set / homenode.pl
index d85c893229cecd36da68707a5b024231cc5c9677..cf8d97154d60a0316359452bd061c0b65554380a 100644 (file)
@@ -13,6 +13,7 @@ my $user;
 # remove leading and trailing spaces
 $line =~ s/^\s+//;
 $line =~ s/\s+$//;
+$line =~ s/[{}]//g;   # no braces allowed
 
 return (1, $self->msg('hnodee1')) if !$line;
 
@@ -21,7 +22,9 @@ if ($user) {
        $line = uc $line;
        $user->homenode($line);
        $user->put();
-       DXProt::broadcast_ak1a(DXProt::pc41($call, 4, $line), $DXProt::me);
+       my $s = DXProt::pc41($call, 4, $line);
+       DXProt::eph_dup($s);
+       DXProt::broadcast_all_ak1a($s, $DXProt::me) ;
        return (1, $self->msg('hnode', $line));
 } else {
        return (1, $self->msg('namee2', $call));