diff --git a/irc/custime/parseduration.go b/irc/custime/parseduration.go index 7f18aad5..af2636f9 100644 --- a/irc/custime/parseduration.go +++ b/irc/custime/parseduration.go @@ -75,8 +75,9 @@ var unitMap = map[string]int64{ "m": int64(time.Minute), "h": int64(time.Hour), "d": int64(time.Hour * 24), + "w": int64(time.Hour * 24 * 7), "mo": int64(time.Hour * 24 * 30), - "y": int64(time.Hour * 24 * 265), + "y": int64(time.Hour * 24 * 365), } // ParseDuration parses a duration string.