X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fhomebbs.pl;h=ca563975313a51d78f52361bca05fabd5742bb86;hb=ab811a0c902225075a9bd69749f65594079433a9;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=07ea293f3919d2da76220b5fbc55b734008ed44c;p=spider.git diff --git a/cmd/set/homebbs.pl b/cmd/set/homebbs.pl index e69de29b..ca563975 100644 --- a/cmd/set/homebbs.pl +++ b/cmd/set/homebbs.pl @@ -0,0 +1,28 @@ +# +# set the home mail bbs of the user +# +# Copyright (c) 1998 - Dirk Koopman +# +# +# + +my ($self, $line) = @_; +my $call = $self->call; +my $user; + +# remove leading and trailing spaces +$line =~ s/^\s+//; +$line =~ s/\s+$//; + +return (1, $self->msg('bbse1')) if !$line; + +$user = DXUser::get_current($call); +if ($user) { + $line = uc $line; + $user->bbs($line); + $user->put(); + return (1, $self->msg('bbs', $line)); +} else { + return (1, $self->msg('namee2', $call)); +} +