Add support for bot mode

References: https://ircv3.net/specs/extensions/bot-mode
This commit is contained in:
Simon Ser 2022-06-08 15:04:27 +02:00
parent 8507500d74
commit 6b04cb1417
3 changed files with 12 additions and 0 deletions

View file

@ -189,6 +189,10 @@ export default function BufferHeader(props) {
let desc = "This user is a server operator, they have administrator privileges.";
details.push(html`<abbr title=${desc}>server operator</abbr>`);
}
if (props.user.bot) {
let desc = "This user is an automated bot.";
details.push(html`<abbr title=${desc}>bot</abbr>`);
}
details = details.map((item, i) => {
if (i === 0) {
return item;