From 99610eae4bfcdb3091014a59a797da10900dea42 Mon Sep 17 00:00:00 2001 From: Pratyush Desai Date: Wed, 14 Jul 2021 04:28:54 +0530 Subject: [PATCH] add timeCreated to /uban list output --- irc/handlers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/irc/handlers.go b/irc/handlers.go index b45cd80e..b76d0e68 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -799,6 +799,7 @@ func formatBanForListing(client *Client, key string, info IPBanInfo) string { if info.Duration != 0 { desc = fmt.Sprintf("%s [%s]", desc, info.TimeLeft()) } + desc = fmt.Sprintf("%s added on [%s]", desc, info.TimeCreated.UTC().Format(time.RFC1123)) banType := "Ban" if info.RequireSASL { banType = "SASL required"