Add hint in server operators buffer header

This commit is contained in:
Simon Ser 2021-11-01 18:45:16 +01:00
parent 33c3cf3278
commit 483f0c65b1
2 changed files with 4 additions and 0 deletions

View File

@ -146,6 +146,9 @@ export default function BufferHeader(props) {
if (props.user.account) {
details.push(`authenticated as ${props.user.account}`);
}
if (props.user.operator) {
details.push("server operator");
}
details = details.length > 0 ? `(${details.join(", ")})` : null;
description = html`<${NickStatus} status=${status}/> ${realname} ${details}`;

View File

@ -374,6 +374,7 @@ export const State = {
if (who.flags !== undefined) {
who.away = who.flags.indexOf("G") >= 0; // H for here, G for gone
who.operator = who.flags.indexOf("*") >= 0;
delete who.flags;
}