mirror of
https://github.com/jeremyd/ergo.git
synced 2026-05-24 08:44:46 -07:00
add timeCreated to /uban list output
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user