Fix ignore list resetting on server restart

This commit is contained in:
Pavel Djundik 2018-07-11 10:57:02 +03:00
parent 3bf24047dd
commit e8b3836050
2 changed files with 2 additions and 0 deletions

View file

@ -214,6 +214,7 @@ Client.prototype.connect = function(args) {
ip: args.ip || (client.config && client.config.ip) || client.ip,
hostname: args.hostname || (client.config && client.config.hostname) || client.hostname,
channels: channels,
ignoreList: args.ignoreList ? args.ignoreList : [],
});
// Set network lobby channel id

View file

@ -309,6 +309,7 @@ function initializeClient(socket, client, token, lastMessage) {
data.hostname = null;
data.uuid = null;
data.commands = null;
data.ignoreList = null;
client.connect(data);
}