Merge pull request #2037 from thelounge/xpaw/fix-1501
Fix queries going to lobby if the network name matches user name
This commit is contained in:
commit
b213e988ca
@ -133,7 +133,8 @@ Network.prototype.export = function() {
|
||||
Network.prototype.getChannel = function(name) {
|
||||
name = name.toLowerCase();
|
||||
|
||||
return _.find(this.channels, function(that) {
|
||||
return that.name.toLowerCase() === name;
|
||||
return _.find(this.channels, function(that, i) {
|
||||
// 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