Merge pull request #2640 from thelounge/xpaw/ignorelist-fix

Fix ignore list resetting on server restart
This commit is contained in:
Pavel Djundik 2018-07-11 11:12:34 +03:00 committed by GitHub
commit bb26da2c3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);
}