Fix #2024 - Send visible defaults when displayNetwork is false

This commit is contained in:
Pavel Djundik 2018-01-31 23:14:26 +02:00
parent ffa9685b41
commit e6241556be

View File

@ -508,6 +508,14 @@ function getClientConfiguration() {
if (config.displayNetwork) { if (config.displayNetwork) {
config.defaults = Helper.config.defaults; config.defaults = Helper.config.defaults;
} else {
// Only send defaults that are visible on the client
config.defaults = _.pick(Helper.config.defaults, [
"nick",
"username",
"realname",
"join",
]);
} }
return config; return config;