mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-13 07:48:37 +01:00
components/buffer-header: skip account name if it matches nick
This commit is contained in:
parent
ac7785aa7f
commit
6acf6d544a
@ -144,7 +144,11 @@ export default function BufferHeader(props) {
|
||||
details.push(`${props.user.username}@${props.user.hostname}`);
|
||||
}
|
||||
if (props.user.account) {
|
||||
details.push(`authenticated as ${props.user.account}`);
|
||||
if (props.user.account === props.buffer.name) {
|
||||
details.push("authenticated");
|
||||
} else {
|
||||
details.push(`authenticated as ${props.user.account}`);
|
||||
}
|
||||
}
|
||||
if (props.user.operator) {
|
||||
details.push("server operator");
|
||||
|
Loading…
x
Reference in New Issue
Block a user