Merge pull request #1993 from milindl/feat/chan-auto-current
Show channels for only active server in autocomplete
This commit is contained in:
commit
ff9dd3833e
@ -282,7 +282,9 @@ function completeCommands(word) {
|
|||||||
function completeChans(word) {
|
function completeChans(word) {
|
||||||
const words = [];
|
const words = [];
|
||||||
|
|
||||||
sidebar.find(".chan")
|
sidebar.find(".chan.active")
|
||||||
|
.parent()
|
||||||
|
.find(".chan")
|
||||||
.each(function() {
|
.each(function() {
|
||||||
const self = $(this);
|
const self = $(this);
|
||||||
if (!self.hasClass("lobby")) {
|
if (!self.hasClass("lobby")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user