# HG changeset patch # User Matthew Wild # Date 1577707457 0 # Node ID 28deb30a5272fffb05eb718bbb5b2f7f30b054d1 # Parent 58e484426d136cfcde2a87ccf2cec7a7976880c0 mod_easy_invite: Improve docs surrounding configuration options and defaults diff -r 58e484426d13 -r 28deb30a5272 mod_easy_invite/README.markdown --- a/mod_easy_invite/README.markdown Sun Dec 29 23:41:32 2019 +0100 +++ b/mod_easy_invite/README.markdown Mon Dec 30 12:04:17 2019 +0000 @@ -13,11 +13,30 @@ enable mod_register_ibr and set allow_registration = true, and then also set `registration_invite_only = true` to restrict registration. +| Name | Description | Default | +|--------------------------|-----------------------------------------------------------------------------------|---------| +| registration_invite_only | Whether registration attempts without an invite token should be blocked | true | +| allow_user_invites | Whether existing users should be allowed to invite new users to register accounts | true | + +## Example: Invite-only registration ``` {.lua} -- To allow invitation through a token, mod_register +allow_registration = true registration_invite_only = true ``` +## Example: Open registration + +This setup allows completely open registration, even without +an invite token. + +``` {.lua} +allow_registration = true +registration_invite_only = false +``` + +## Invite creation permissions + To allow existing users of your server to send invitation links that allow new people to join your server, you can set `allow_user_invites = true`.