From d0284dc1b9a55e088289c21898981e99d4e7a17b Mon Sep 17 00:00:00 2001 From: Jay2k1 Date: Tue, 29 May 2018 11:56:41 +0200 Subject: [PATCH] Remove else so join is always sent Fixes #2472 --- client/js/lounge.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/js/lounge.js b/client/js/lounge.js index 2f9a033f..82abe9d5 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -146,12 +146,12 @@ $(function() { if (chan.length) { chan.trigger("click"); - } else { - socket.emit("input", { - target: chat.data("id"), - text: "/join " + name, - }); } + + socket.emit("input", { + target: chat.data("id"), + text: "/join " + name, + }); }); chat.on("click", ".condensed-summary .content", function() {