components/buffer: add human-readable channel mode changes

References: https://todo.sr.ht/~emersion/gamja/162
This commit is contained in:
Simon Ser 2024-09-08 12:48:07 +02:00
parent a3b375ab3f
commit 26792ec386
2 changed files with 79 additions and 1 deletions

View file

@ -82,6 +82,14 @@ export const STD_MEMBERSHIP_NAMES = {
"+": "voice",
};
export const STD_MEMBERSHIP_MODES = {
"~": "q",
"&": "a",
"@": "o",
"%": "h",
"+": "v",
};
const STD_MEMBERSHIPS = "~&@%+";
const STD_CHANTYPES = "#&+!";