Add client text util for console

This commit is contained in:
Vortrex
2020-12-13 14:49:22 -06:00
parent 900a31b3bd
commit bbd5b3b405

View File

@@ -1715,4 +1715,8 @@ function arrayBufferToString(arrayBuffer) {
return String.fromCharCode.apply(null, new Uint8Array(arrayBuffer));
}
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
function getClientDisplayForConsole(client) {
return `${client.name}[${client.index}]`;
}