forked from CringeStudios/gamja
Display account name
This commit is contained in:
parent
d12e1109b3
commit
0b32d9295a
@ -138,12 +138,16 @@ export default function BufferHeader(props) {
|
|||||||
realname = stripANSI(props.user.realname || "");
|
realname = stripANSI(props.user.realname || "");
|
||||||
}
|
}
|
||||||
|
|
||||||
let mask = null;
|
let details = [];
|
||||||
if (props.user.username && props.user.hostname) {
|
if (props.user.username && props.user.hostname) {
|
||||||
mask = `(${props.user.username}@${props.user.hostname})`;
|
details.push(`${props.user.username}@${props.user.hostname}`);
|
||||||
}
|
}
|
||||||
|
if (props.user.account) {
|
||||||
|
details.push(`authenticated as ${props.user.account}`);
|
||||||
|
}
|
||||||
|
details = details.length > 0 ? `(${details.join(", ")})` : null;
|
||||||
|
|
||||||
description = html`<${NickStatus} status=${status}/> ${realname} ${mask}`;
|
description = html`<${NickStatus} status=${status}/> ${realname} ${details}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
actions = html`
|
actions = html`
|
||||||
|
@ -56,6 +56,10 @@ class MemberItem extends Component {
|
|||||||
} else {
|
} else {
|
||||||
title = mask;
|
title = mask;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (user.account) {
|
||||||
|
title += `\nAuthenticated as ${user.account}`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user