Also use the networks specific leave message on quit

This commit is contained in:
Nachtalb 2020-11-26 00:38:32 +01:00
parent 877e4acf7d
commit 03377c6ced
No known key found for this signature in database
GPG key ID: E48DF13C07055D92
2 changed files with 2 additions and 2 deletions

View file

@ -650,7 +650,7 @@ Client.prototype.quit = function (signOut) {
}
this.networks.forEach((network) => {
network.quit(Helper.config.leaveMessage);
network.quit();
network.destroy();
});

View file

@ -439,7 +439,7 @@ Network.prototype.quit = function (quitMessage) {
// https://ircv3.net/specs/extensions/sts#rescheduling-expiry-on-disconnect
STSPolicies.refreshExpiration(this.host);
this.irc.quit(quitMessage || Helper.config.leaveMessage);
this.irc.quit(quitMessage || this.leaveMessage || Helper.config.leaveMessage);
};
Network.prototype.exportForEdit = function () {