From fa97a5177cf631d2a60831d29b6a54b509d8ee2f Mon Sep 17 00:00:00 2001 From: Mattias Erming Date: Thu, 10 Jul 2014 00:47:38 +0200 Subject: [PATCH] Tabcomplete channel names --- client/js/chat.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/js/chat.js b/client/js/chat.js index fbe074a..2e597c0 100644 --- a/client/js/chat.js +++ b/client/js/chat.js @@ -384,6 +384,11 @@ $(function() { .each(function() { words.push($(this).text().replace(/[+%@~]/, "")); }); + var channels = sidebar.find(".channel") + .each(function() { + var chan = $(this).clone().remove("span").text().trim(); + words.push(chan); + }); return $.grep( words, function(w) {