components/buffer-header: mark unauthenticated users as such

This commit is contained in:
Simon Ser 2021-11-02 18:04:21 +01:00
parent 6acf6d544a
commit eec4126562

View file

@ -149,6 +149,10 @@ export default function BufferHeader(props) {
} else { } else {
details.push(`authenticated as ${props.user.account}`); details.push(`authenticated as ${props.user.account}`);
} }
} else if (props.server.isupport.has("MONITOR") && props.server.isupport.has("WHOX")) {
// If the server supports MONITOR and WHOX, we can faithfully
// keep user.account up-to-date for user queries
details.push("unauthenticated");
} }
if (props.user.operator) { if (props.user.operator) {
details.push("server operator"); details.push("server operator");