Using profile nickname instead of "Another TeaSpeak user" if you're connecting via bookmarks

This commit is contained in:
WolverinDEV 2019-10-19 20:52:41 +02:00
parent 305149f5af
commit c6a4120cf8

View file

@ -19,7 +19,7 @@ namespace bookmarks {
profile, profile,
true, true,
{ {
nickname: mark.nickname, nickname: mark.nickname === "Another TeaSpeak user" || !mark.nickname ? profile.connect_username() : mark.nickname,
password: mark.server_properties.server_password_hash ? { password: mark.server_properties.server_password_hash ? {
password: mark.server_properties.server_password_hash, password: mark.server_properties.server_password_hash,
hashed: true hashed: true
@ -107,7 +107,7 @@ namespace bookmarks {
create_bookmark("TeaSpeak official Test-Server", _bookmark_config.root_bookmark, { create_bookmark("TeaSpeak official Test-Server", _bookmark_config.root_bookmark, {
server_address: "ts.teaspeak.de", server_address: "ts.teaspeak.de",
server_port: 9987 server_port: 9987
}, "Another TeaSpeak user"); }, undefined);
save_config(); save_config();
} }