Merge pull request #3712 from thelounge/xpaw/fix-3302
Add support for webirc secure option
This commit is contained in:
commit
f12a13916b
@ -174,6 +174,13 @@ Network.prototype.createWebIrc = function(client) {
|
|||||||
hostname: client.config.browser.hostname,
|
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") {
|
if (typeof Helper.config.webirc[this.host] === "function") {
|
||||||
webircObject.password = null;
|
webircObject.password = null;
|
||||||
return Helper.config.webirc[this.host](webircObject, this);
|
return Helper.config.webirc[this.host](webircObject, this);
|
||||||
|
Loading…
Reference in New Issue
Block a user