Browse Source

Merge pull request #1755 from mogad0n/enhance/uban_list_timecreated

add timeCreated to /uban list output
tags/v2.8.0-rc1
Shivaram Lingamneni 3 years ago
parent
commit
699921afff
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      irc/handlers.go

+ 1
- 0
irc/handlers.go View File

@@ -799,6 +799,7 @@ func formatBanForListing(client *Client, key string, info IPBanInfo) string {
799 799
 	if info.Duration != 0 {
800 800
 		desc = fmt.Sprintf("%s [%s]", desc, info.TimeLeft())
801 801
 	}
802
+	desc = fmt.Sprintf("%s added on [%s]", desc, info.TimeCreated.UTC().Format(time.RFC1123))
802 803
 	banType := "Ban"
803 804
 	if info.RequireSASL {
804 805
 		banType = "SASL required"

Loading…
Cancel
Save