Add support for bot mode
References: https://ircv3.net/specs/extensions/bot-mode
This commit is contained in:
parent
8507500d74
commit
6b04cb1417
3 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue