Spanish 3rd attempt
[spider.git] / cmd / set / homenode.pl
index d85c893229cecd36da68707a5b024231cc5c9677..5d3cb413610f38177d8b09fb00d371aaec44fcad 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,7 @@ if ($user) {
        $line = uc $line;
        $user->homenode($line);
        $user->put();
-       DXProt::broadcast_ak1a(DXProt::pc41($call, 4, $line), $DXProt::me);
+       DXProt::broadcast_all_ak1a(DXProt::pc41($call, 4, $line), $DXProt::me);
        return (1, $self->msg('hnode', $line));
 } else {
        return (1, $self->msg('namee2', $call));