forked from CringeStudios/gamja
Add hint in server operators buffer header
This commit is contained in:
parent
33c3cf3278
commit
483f0c65b1
@ -146,6 +146,9 @@ export default function BufferHeader(props) {
|
|||||||
if (props.user.account) {
|
if (props.user.account) {
|
||||||
details.push(`authenticated as ${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;
|
details = details.length > 0 ? `(${details.join(", ")})` : null;
|
||||||
|
|
||||||
description = html`<${NickStatus} status=${status}/> ${realname} ${details}`;
|
description = html`<${NickStatus} status=${status}/> ${realname} ${details}`;
|
||||||
|
1
state.js
1
state.js
@ -374,6 +374,7 @@ export const State = {
|
|||||||
|
|
||||||
if (who.flags !== undefined) {
|
if (who.flags !== undefined) {
|
||||||
who.away = who.flags.indexOf("G") >= 0; // H for here, G for gone
|
who.away = who.flags.indexOf("G") >= 0; // H for here, G for gone
|
||||||
|
who.operator = who.flags.indexOf("*") >= 0;
|
||||||
delete who.flags;
|
delete who.flags;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user