X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Faddress.pl;h=3109b56b84ecdbb0211b6698406830d12b5fcefa;hb=c3505bcfc922cd712bad2c20b3479cf8d1dc54fe;hp=f5922d9c31e53cd8b177020576025ff50e22c239;hpb=1cf4bd14be226274d5deb05da8480ab91a5dac52;p=spider.git diff --git a/cmd/set/address.pl b/cmd/set/address.pl index f5922d9c..3109b56b 100644 --- a/cmd/set/address.pl +++ b/cmd/set/address.pl @@ -3,7 +3,7 @@ # # Copyright (c) 1998 - Dirk Koopman # -# $Id$ +# # my ($self, $line) = @_; @@ -11,17 +11,9 @@ my $call; my @out; my $user; -if ($self->priv >= 5) { # allow a callsign as first arg - my @args = split /\s+/, $line; - $call = UC $args[0]; - $user = DXUser->get_current($call); - shift @args if $user; - $line = join ' ', @args; -} else { - $user = $self->user; -} - +$user = $self->user; +$line =~ s/[{}]//g; # no braces allowed $user->addr($line); -push @out, DXM::msg('addr', $call); +push @out, $self->msg('addr', $line); return (1, @out);