From 579ef668ac63ba8d6afa272b93381a1ded1362a9 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sun, 1 Mar 2020 23:13:21 -0500 Subject: [PATCH] fix #838 --- irc/nickserv.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/irc/nickserv.go b/irc/nickserv.go index 8981d7dd..3f4eb9c4 100644 --- a/irc/nickserv.go +++ b/irc/nickserv.go @@ -367,7 +367,7 @@ func displaySetting(settingName string, settings AccountSettings, client *Client } case "always-on": stored := settings.AlwaysOn - actual := client.AlwaysOn() + actual := persistenceEnabled(config.Accounts.Multiclient.AlwaysOn, stored) nsNotice(rb, fmt.Sprintf(client.t("Your stored always-on setting is: %s"), persistentStatusToString(stored))) if actual { nsNotice(rb, client.t("Given current server settings, your client is always-on")) @@ -377,7 +377,8 @@ func displaySetting(settingName string, settings AccountSettings, client *Client case "autoreplay-missed": stored := settings.AutoreplayMissed if stored { - if client.AlwaysOn() { + alwaysOn := persistenceEnabled(config.Accounts.Multiclient.AlwaysOn, settings.AlwaysOn) + if alwaysOn { nsNotice(rb, client.t("Autoreplay of missed messages is enabled")) } else { nsNotice(rb, client.t("You have enabled autoreplay of missed messages, but you can't receive them because your client isn't set to always-on"))