Fix #2024 - Send visible defaults when displayNetwork is false
This commit is contained in:
parent
ffa9685b41
commit
e6241556be
@ -508,6 +508,14 @@ function getClientConfiguration() {
|
||||
|
||||
if (config.displayNetwork) {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user