X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Femail.pl;h=c5bfe52bdd740d9891df5d1290d569b91294edc4;hb=996d9774dad0fc0133f8497d9d264f4f5a4265b3;hp=8748df1f1bed75b21e9e56696ce3bdb01ff5915b;hpb=b4826d1f4125788e14fed3adbb99e66242904e74;p=spider.git diff --git a/cmd/set/email.pl b/cmd/set/email.pl index 8748df1f..c5bfe52b 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); +$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 {