From 36f4284e07a2ff7667fb635a19eadc3d46f740e5 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Mon, 6 Jan 2020 12:54:23 +0200 Subject: [PATCH] Add support for webirc secure option Fixes #3302 --- src/models/network.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/models/network.js b/src/models/network.js index 1df26436..6957b682 100644 --- a/src/models/network.js +++ b/src/models/network.js @@ -176,6 +176,13 @@ Network.prototype.createWebIrc = function(client) { hostname: client.config.browser.hostname, }; + // https://ircv3.net/specs/extensions/webirc#options + if (client.config.browser.isSecure) { + webircObject.options = { + secure: true, + }; + } + if (typeof Helper.config.webirc[this.host] === "function") { webircObject.password = null; return Helper.config.webirc[this.host](webircObject, this);