Merge pull request #2025 from thelounge/xpaw/fix-2024
Fix #2024 - Send visible defaults when displayNetwork is false
This commit is contained in:
commit
ede0f44ca2
@ -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