forked from External/ergo
add timeCreated to /uban list output
This commit is contained in:
parent
128142ca41
commit
99610eae4b
1 changed files with 1 additions and 0 deletions
|
|
@ -799,6 +799,7 @@ func formatBanForListing(client *Client, key string, info IPBanInfo) string {
|
||||||
if info.Duration != 0 {
|
if info.Duration != 0 {
|
||||||
desc = fmt.Sprintf("%s [%s]", desc, info.TimeLeft())
|
desc = fmt.Sprintf("%s [%s]", desc, info.TimeLeft())
|
||||||
}
|
}
|
||||||
|
desc = fmt.Sprintf("%s added on [%s]", desc, info.TimeCreated.UTC().Format(time.RFC1123))
|
||||||
banType := "Ban"
|
banType := "Ban"
|
||||||
if info.RequireSASL {
|
if info.RequireSASL {
|
||||||
banType = "SASL required"
|
banType = "SASL required"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue