Fix queries going to lobby if the network name matches user name
Fixes #1501 Fixes #1983
This commit is contained in:
parent
dbb51e0f46
commit
b7ccb5a294
@ -133,7 +133,8 @@ Network.prototype.export = function() {
|
|||||||
Network.prototype.getChannel = function(name) {
|
Network.prototype.getChannel = function(name) {
|
||||||
name = name.toLowerCase();
|
name = name.toLowerCase();
|
||||||
|
|
||||||
return _.find(this.channels, function(that) {
|
return _.find(this.channels, function(that, i) {
|
||||||
return that.name.toLowerCase() === name;
|
// Skip network lobby (it's always unshifted into first position)
|
||||||
|
return i > 0 && that.name.toLowerCase() === name;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user