X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Femail.pl;h=ac6c991cdd7682a413bf240ec3bb8f837eb5872b;hb=1aac4bfce7659fc802741267238f7cc008a97ca7;hp=8748df1f1bed75b21e9e56696ce3bdb01ff5915b;hpb=b4826d1f4125788e14fed3adbb99e66242904e74;p=spider.git diff --git a/cmd/set/email.pl b/cmd/set/email.pl index 8748df1f..ac6c991c 100644 --- a/cmd/set/email.pl +++ b/cmd/set/email.pl @@ -3,22 +3,22 @@ # # Copyright (c) 1998 - Dirk Koopman # -# $Id$ +# # my ($self, $line) = @_; my $call = $self->call; my $user; -# remove leading and trailing spaces -$line =~ s/^\s+//; -$line =~ s/\s+$//; +$line =~ s/[<>()\[\]{}]//g; # remove any braces +my @f = split /\s+/, $line; return (1, $self->msg('emaile1')) if !$line; $user = DXUser->get_current($call); if ($user) { - $user->email($line); + $user->email(\@f); + $user->wantemail(1); $user->put(); return (1, $self->msg('emaila', $line)); } else {