Merge pull request #834 from thelounge/xpaw/active-window

Do not ignore window opens when considering active channels
This commit is contained in:
Jérémie Astori 2016-12-21 18:15:14 -05:00 committed by GitHub
commit 391f3cb59b

View File

@ -377,8 +377,14 @@ Client.prototype.more = function(data) {
});
};
Client.prototype.open = function(socketId, data) {
var target = this.find(data);
Client.prototype.open = function(socketId, target) {
// Opening a window like settings
if (target === null) {
this.attachedClients[socketId] = -1;
return;
}
target = this.find(target);
if (!target) {
return;
}