X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Faddress.pl;h=3109b56b84ecdbb0211b6698406830d12b5fcefa;hb=c3505bcfc922cd712bad2c20b3479cf8d1dc54fe;hp=15e42579597482a00ff5c899b2c852118b44666e;hpb=b060a0a3ee72530aa3f10d453186a662b66d7efe;p=spider.git diff --git a/cmd/set/address.pl b/cmd/set/address.pl index 15e42579..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,18 +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 { - $call = $self->call; - $user = $self->user; -} - +$user = $self->user; +$line =~ s/[{}]//g; # no braces allowed $user->addr($line); -push @out, $self->msg('addr', $call, $line); +push @out, $self->msg('addr', $line); return (1, @out);