diff options
author | Stefan Kangas <skangas@skangas.se> | 2011-11-18 19:31:03 +0100 |
---|---|---|
committer | Stefan Kangas <skangas@skangas.se> | 2011-11-18 19:31:03 +0100 |
commit | 446ae9bf00bb59c245a8045ee7ab8a9f73599d78 (patch) | |
tree | e727341e41c87d030a29b2c3240902aea3e05364 /fripost-adduser | |
parent | 6c2cd2ab4ffb47f3dec5c08279a0afe83601b57c (diff) |
Change order of user adding process
Diffstat (limited to 'fripost-adduser')
-rwxr-xr-x | fripost-adduser | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/fripost-adduser b/fripost-adduser index db312a2..5c21ef1 100755 --- a/fripost-adduser +++ b/fripost-adduser @@ -120,6 +120,15 @@ $msg->attr('content-type.charset' => 'utf-8'); dsay "-----------------------------------"; } +### Subscribe user to announce-list +if (confirm("Subscribe user to announce mailing list? ")) { + $msg->replace(From => $user->{username}); + $msg->replace(To => 'announce-subscribe@lists.fripost.org'); + $msg->replace(Subject => ''); + $msg->replace(Data => ''); + $msg->send(); +} + ### Send login credentials to new user { my ($vars, $data); @@ -151,16 +160,6 @@ $msg->attr('content-type.charset' => 'utf-8'); } } -### Subscribe user to announce-list -{ - confirm_or_abort("Subscribe user to announce mailing list? "); - $msg->replace(From => $user->{username}); - $msg->replace(To => 'announce-subscribe@lists.fripost.org'); - $msg->replace(Subject => ''); - $msg->replace(Data => ''); - $msg->send(); -} - =head1 AUTHOR Stefan Kangas C<< <skangas at skangas.se> >> |