merged back NEW_ROUTE into trunk
[spider.git] / cmd / set / name.pl
index 30b1dc7184c5f22d51cea9a11c9c1d44daf55b6a..3291757455974a77f209057463d7a199b2459a36 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('namee1')) if !$line;
 
@@ -20,7 +21,9 @@ $user = DXUser->get_current($call);
 if ($user) {
        $user->name($line);
        $user->put();
-       DXProt::broadcast_ak1a(DXProt::pc41($call, 1, $line), $DXProt::me);
+       my $s = DXProt::pc41($call, 1, $line);
+       DXProt::eph_dup($s);
+       DXProt::broadcast_all_ak1a($s, $DXProt::me) ;
        return (1, $self->msg('name', $line));
 } else {
        return (1, $self->msg('namee2', $call));