components/buffer-header: skip account name if it matches nick

This commit is contained in:
Simon Ser 2021-11-02 18:01:07 +01:00
parent ac7785aa7f
commit 6acf6d544a

View File

@ -144,8 +144,12 @@ export default function BufferHeader(props) {
details.push(`${props.user.username}@${props.user.hostname}`); details.push(`${props.user.username}@${props.user.hostname}`);
} }
if (props.user.account) { if (props.user.account) {
if (props.user.account === props.buffer.name) {
details.push("authenticated");
} else {
details.push(`authenticated as ${props.user.account}`); details.push(`authenticated as ${props.user.account}`);
} }
}
if (props.user.operator) { if (props.user.operator) {
details.push("server operator"); details.push("server operator");
} }