Przeglądaj źródła

uban list explicitly shows indefinite durations

tags/v2.11.0-rc1
Pratyush Desai 1 rok temu
rodzic
commit
df234b842e
1 zmienionych plików z 1 dodań i 4 usunięć
  1. 1
    4
      irc/handlers.go

+ 1
- 4
irc/handlers.go Wyświetl plik

897
 	if info.OperReason != "" && info.OperReason != info.Reason {
897
 	if info.OperReason != "" && info.OperReason != info.Reason {
898
 		desc = fmt.Sprintf("%s | %s", info.Reason, info.OperReason)
898
 		desc = fmt.Sprintf("%s | %s", info.Reason, info.OperReason)
899
 	}
899
 	}
900
-	if info.Duration != 0 {
901
-		desc = fmt.Sprintf("%s [%s]", desc, info.TimeLeft())
902
-	}
903
-	desc = fmt.Sprintf("%s added on [%s]", desc, info.TimeCreated.UTC().Format(time.RFC1123))
900
+	desc = fmt.Sprintf("%s [%s] added on [%s]", desc, info.TimeLeft(), info.TimeCreated.UTC().Format(time.RFC1123))
904
 	banType := "Ban"
901
 	banType := "Ban"
905
 	if info.RequireSASL {
902
 	if info.RequireSASL {
906
 		banType = "SASL required"
903
 		banType = "SASL required"

Ładowanie…
Anuluj
Zapisz