Merge pull request #834 from thelounge/xpaw/active-window
Do not ignore window opens when considering active channels
This commit is contained in:
commit
391f3cb59b
@ -377,8 +377,14 @@ Client.prototype.more = function(data) {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
Client.prototype.open = function(socketId, data) {
|
Client.prototype.open = function(socketId, target) {
|
||||||
var target = this.find(data);
|
// Opening a window like settings
|
||||||
|
if (target === null) {
|
||||||
|
this.attachedClients[socketId] = -1;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
target = this.find(target);
|
||||||
if (!target) {
|
if (!target) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user