Add support for webirc secure option

Fixes #3302
This commit is contained in:
Pavel Djundik 2020-01-06 12:54:23 +02:00
parent 304e8bf5b0
commit 36f4284e07

View file

@ -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);