Skip to content

Channel: Make 'invite' command's required capability configurable - #1617

Open
progval wants to merge 3 commits into
masterfrom
invite-cap
Open

Channel: Make 'invite' command's required capability configurable#1617
progval wants to merge 3 commits into
masterfrom
invite-cap

Conversation

@progval

@progval progval commented Apr 19, 2025

Copy link
Copy Markdown
Owner

It still requires 'op' by default, but can now be changed with a config value.

This can be useful on servers that do not have a 'free invite' channel mode (like Charybdis/Solanum's +g)

It still requires 'op' by default, but can now be changed with a config value.

This can be useful on servers that do not have a 'free invite' channel mode
(like Charybdis/Solanum's +g)
@progval
progval requested a review from jlu5 April 19, 2025 18:12
Comment thread plugins/Channel/config.py Outdated
Comment thread plugins/Channel/test.py Outdated
@progval

progval commented Apr 19, 2025

Copy link
Copy Markdown
Owner Author

I just noticed that it allows people not in a channel to invite themselves, which is counter-intuitive. I'll add a config option (default True) to require that the caller be in the channel

@progval

progval commented Apr 19, 2025

Copy link
Copy Markdown
Owner Author

but then ops can't use it to invite themselves back in a channel, hmm...

@progval

progval commented May 3, 2025

Copy link
Copy Markdown
Owner Author

Alternative: a config option (default op) for what capability allows one to invite if they are not in channel, and an other (default empty) for what capability allows one to invite if they are

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.

2 participants