mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-15 00:19:29 +01:00
Merge pull request #1988 from mogad0n/fix/ubanlistduration
/UBAN LIST explicitly states 'indefinite' durations for Klines/Dlines
This commit is contained in:
commit
594991d6cc
@ -897,10 +897,7 @@ func formatBanForListing(client *Client, key string, info IPBanInfo) string {
|
|||||||
if info.OperReason != "" && info.OperReason != info.Reason {
|
if info.OperReason != "" && info.OperReason != info.Reason {
|
||||||
desc = fmt.Sprintf("%s | %s", info.Reason, info.OperReason)
|
desc = fmt.Sprintf("%s | %s", info.Reason, info.OperReason)
|
||||||
}
|
}
|
||||||
if info.Duration != 0 {
|
desc = fmt.Sprintf("%s [%s] added on [%s]", desc, info.TimeLeft(), info.TimeCreated.UTC().Format(time.RFC1123))
|
||||||
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…
Reference in New Issue
Block a user