From e520ba7e0e4c14b01a5f6ba4ba2229dfe27728fe Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Wed, 15 Jan 2025 22:12:40 -0500 Subject: [PATCH] list push subscription times as well --- irc/nickserv.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/irc/nickserv.go b/irc/nickserv.go index 8adb0c08..3e4637f4 100644 --- a/irc/nickserv.go +++ b/irc/nickserv.go @@ -1686,7 +1686,10 @@ func nsPushHandler(service *ircService, server *Server, client *Client, command subscriptions := target.getPushSubscriptions() service.Notice(rb, fmt.Sprintf(client.t("Nickname %[1]s has %[2]d push subscription(s)"), target.Nick(), len(subscriptions))) for i, subscription := range subscriptions { - service.Notice(rb, fmt.Sprintf("%d: %s", i, subscription.Endpoint)) + service.Notice(rb, fmt.Sprintf(client.t("Subscription %d:"), i+1)) + service.Notice(rb, fmt.Sprintf(client.t("Endpoint: %s"), subscription.Endpoint)) + service.Notice(rb, fmt.Sprintf(client.t("Last renewal: %s"), subscription.LastRefresh.Format(time.RFC1123))) + service.Notice(rb, fmt.Sprintf(client.t("Last push: %s"), subscription.LastSuccess.Format(time.RFC1123))) } case "DELETE": if len(params) < 2 {