diff --git a/components/buffer-header.js b/components/buffer-header.js index 072dd90..be01492 100644 --- a/components/buffer-header.js +++ b/components/buffer-header.js @@ -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}`; diff --git a/state.js b/state.js index edd6525..95cf929 100644 --- a/state.js +++ b/state.js @@ -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; }