forked from CringeStudios/gamja
components/buffer-header: skip account name if it matches nick
This commit is contained in:
parent
ac7785aa7f
commit
6acf6d544a
@ -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");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user