Add support for bot mode

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

No files matched your search

+4
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;