Display account name

This commit is contained in:
Simon Ser 2021-09-21 15:38:59 +02:00
parent d12e1109b3
commit 0b32d9295a
2 changed files with 11 additions and 3 deletions

View File

@ -138,12 +138,16 @@ export default function BufferHeader(props) {
realname = stripANSI(props.user.realname || "");
}
let mask = null;
let details = [];
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`

View File

@ -56,6 +56,10 @@ class MemberItem extends Component {
} else {
title = mask;
}
if (user.account) {
title += `\nAuthenticated as ${user.account}`;
}
}
return html`