Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sethelp/locks command #3502

Merged
merged 1 commit into from Apr 27, 2024
Merged

Add sethelp/locks command #3502

merged 1 commit into from Apr 27, 2024

Conversation

chiizujin
Copy link
Contributor

Brief overview of PR changes/additions

There was no way to change a help topic's locks in-game after it was created. This adds that functionality via a sethelp/locks command.

Motivation for adding to Evennia

New feature.

Examples

Tested as quelled superuser.

>sethelp/locks test
Current locks for entry 'test' are: read:all()
>sethelp/locks test = read:id(100)
Locks for entry 'test' changed to: read:id(100)
>help test
--------------------------------------------------------------------------------
No help found
(...)
>unquell
Account permissions (superuser) restored.
>sethelp/locks test
Current locks for entry 'test' are: read:id(100)
>sethelp/locks test=
Locks for entry 'test' reset to: read:all()
>sethelp/locks test
Current locks for entry 'test' are: read:all()

Copy link
Member

@Griatch Griatch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks useful. Also interesting with the difference between locks.validate() and locks.add().

@Griatch Griatch merged commit 079f573 into evennia:main Apr 27, 2024
7 of 10 checks passed
@chiizujin chiizujin deleted the sethelp_locks branch April 28, 2024 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants