3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-23 11:12:44 +01:00

Merge pull request #1755 from mogad0n/enhance/uban_list_timecreated

add timeCreated to /uban list output
This commit is contained in:
Shivaram Lingamneni 2021-07-14 10:17:49 -04:00 committed by GitHub
commit 699921afff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"