projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix disconnect from peer
[spider.git]
/
cmd
/
set
/
address.pl
diff --git
a/cmd/set/address.pl
b/cmd/set/address.pl
index f5922d9c31e53cd8b177020576025ff50e22c239..3109b56b84ecdbb0211b6698406830d12b5fcefa 100644
(file)
--- a/
cmd/set/address.pl
+++ b/
cmd/set/address.pl
@@
-3,7
+3,7
@@
#
# Copyright (c) 1998 - Dirk Koopman
#
#
# Copyright (c) 1998 - Dirk Koopman
#
-#
$Id$
+#
#
my ($self, $line) = @_;
#
my ($self, $line) = @_;
@@
-11,17
+11,9
@@
my $call;
my @out;
my $user;
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);
$user->addr($line);
-push @out,
DXM::msg('addr', $call
);
+push @out,
$self->msg('addr', $line
);
return (1, @out);
return (1, @out);