Add new param to forbid adding new members #70
+35
−9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new feature to manage the addition of new members in the membership system. The most important changes include adding a global parameter to control the addition of new members, updating the
init
function to accept this parameter, and modifying themembers.set
function to respect this setting.New Feature: Control Addition of New Members
membership.lua
: Introduced_global_params
to store global configuration parameters and updated theinit
function to acceptforbid_new_members
parameter. This parameter controls whether new members can be added to the group. [1] [2]membership.lua
: Updated the_protocol_step
function to respect theforbid_new_members
setting when updating member information. [1] [2]Codebase Enhancements
membership/events.lua
: Addedglobal_params
to manage global configuration and updated theevents.handle
function to respect theforbid_new_members
setting. [1] [2]membership/members.lua
: Enhanced themembers.set
function to skip adding new members ifforbid_new_members
is set to true and added logging for skipped members. [1] [2]membership/stash.lua
: Initializedglobal_params
with a default value forforbid_new_members
.