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

Ban descriptions #118

Open
k4bek4be opened this issue Mar 24, 2024 · 2 comments
Open

Ban descriptions #118

k4bek4be opened this issue Mar 24, 2024 · 2 comments

Comments

@k4bek4be
Copy link

This feature has been suggested by channel operators multiple times. I now have an idea how this may work.
Each channel list mode (typically, +beI) would have an optional text description field. This text would be preferably human-readable, but machine-readable (for parsing by clients) is a possibility too. I'll use bnote (ban note) message tag in my examples.
When a channel operator requests a list (/mode #channel b), these entries which have a description, would be tagged with it.

C: mode #channel b
S: :test.example.org 367 testtest #channel someuser!*@* setter 1697420000
S: @bnote=Users\sof\sthis\sbouncer\skeep\smaking\strouble :test.example.org 367 testtest #channel *!*@badhost.example.org setter 1697422222
S: :test.example.org 368 testtest #channel :End of Channel Ban List

When the mode is being set, the note tag can be added to it:
@bnote=Testban MODE #channel +b *!*@*

To modify or delete an existing note, or add a new one, a client would have to re-send this MODE command:
@bnote MODE #channel +b *!*@badhost.example.org

Please comment if you have some better ideas or I've missed something obvious.

@SadieCat
Copy link

How would this work with setting multiple list modes at once?

@k4bek4be
Copy link
Author

The simplest (and probably acceptable) solution would be to set the same note to all added entries.

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

No branches or pull requests

2 participants