X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fname.pl;h=6f76ea60eec7258be7df277fb92cf5e4a1d9071d;hb=92195fd35c0ad190fd9e975732463b499b24c418;hp=30b1dc7184c5f22d51cea9a11c9c1d44daf55b6a;hpb=b4826d1f4125788e14fed3adbb99e66242904e74;p=spider.git diff --git a/cmd/set/name.pl b/cmd/set/name.pl index 30b1dc71..6f76ea60 100644 --- a/cmd/set/name.pl +++ b/cmd/set/name.pl @@ -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,7 @@ $user = DXUser->get_current($call); if ($user) { $user->name($line); $user->put(); - DXProt::broadcast_ak1a(DXProt::pc41($call, 1, $line), $DXProt::me); + DXProt::broadcast_all_ak1a(DXProt::pc41($call, 1, $line), $DXProt::me); return (1, $self->msg('name', $line)); } else { return (1, $self->msg('namee2', $call));