Merge pull request #3712 from thelounge/xpaw/fix-3302

Add support for webirc secure option
This commit is contained in:
Richard Lewis 2020-02-10 16:42:56 +02:00 committed by GitHub
commit f12a13916b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,6 +174,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);