From d6d54c2c567e3f38167e7895657ae6ab3c454b5d Mon Sep 17 00:00:00 2001 From: milindl Date: Sat, 20 Jan 2018 17:25:36 +0530 Subject: [PATCH] Show channels for only active server in autocomplete Fix #1381. --- client/js/autocompletion.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/js/autocompletion.js b/client/js/autocompletion.js index 171b4697..50f0c920 100644 --- a/client/js/autocompletion.js +++ b/client/js/autocompletion.js @@ -282,7 +282,9 @@ function completeCommands(word) { function completeChans(word) { const words = []; - sidebar.find(".chan") + sidebar.find(".chan.active") + .parent() + .find(".chan") .each(function() { const self = $(this); if (!self.hasClass("lobby")) {