X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Femail.pl;fp=cmd%2Funset%2Femail.pl;h=2829a194c910250a5b79919035576f9b25c0b2c7;hb=47bc13ac2b52dd67972c24017d7f6a41ac601611;hp=0000000000000000000000000000000000000000;hpb=9971e7bd96ea646b7921528a2f74edca508a5dc1;p=spider.git diff --git a/cmd/unset/email.pl b/cmd/unset/email.pl new file mode 100644 index 00000000..2829a194 --- /dev/null +++ b/cmd/unset/email.pl @@ -0,0 +1,21 @@ +# +# unset the email address of the user +# +# Copyright (c) 2001 - Dirk Koopman G1TLH +# +# $Id$ +# + +my ($self, $line) = @_; +my $call = $self->call; +my $user; + +$user = DXUser->get_current($call); +if ($user) { + $user->wantemail(0); + $user->put(); + return (1, $self->msg('emaila', $line)); +} else { + return (1, $self->msg('namee2', $call)); +} +