components/buffer-header: skip account name if it matches nick
This commit is contained in:
1 parent
ac7785aa7f
commit
6acf6d544a
1 file changed
+5
-1
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user