From 950bad1d7a4daf1bfa9384b96958fa63f2633113 Mon Sep 17 00:00:00 2001 From: Adam Williams Date: Sat, 24 Mar 2018 16:54:26 +0000 Subject: [PATCH] Add ?channels=x,y,z alias for ?join=x,y,z For backwards compat. with Iris and other systems. --- client/js/lounge.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/js/lounge.js b/client/js/lounge.js index 0f4b94ae..50249e2c 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -581,6 +581,10 @@ $(function() { $("#connect").one("show", function() { const params = URI(document.location.search).search(true); + if ("channels" in params) { + params.join = params.channels; + } + // Possible parameters: name, host, port, password, tls, nick, username, realname, join // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...in#Iterating_over_own_properties_only for (let key in params) {