Merge pull request #2025 from thelounge/xpaw/fix-2024

Fix #2024 - Send visible defaults when displayNetwork is false
This commit is contained in:
Jérémie Astori 2018-02-01 00:34:04 -05:00 committed by GitHub
commit ede0f44ca2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;