Add an extra check for setting names
This commit is contained in:
parent
589e846b73
commit
95a0045a0d
@ -494,6 +494,10 @@ function initializeClient(socket, client, token, lastMessage) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof newSetting.name !== "string" || newSetting.name[0] === "_") {
|
||||
return;
|
||||
}
|
||||
|
||||
// Older user configs will not have the clientSettings property.
|
||||
if (!client.config.hasOwnProperty("clientSettings")) {
|
||||
client.config.clientSettings = {};
|
||||
|
Loading…
Reference in New Issue
Block a user