From bb868eae82c3b4860dfd19a602850f6cfc923212 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 16 Sep 2022 18:55:31 +0200 Subject: [PATCH] downstream: fix CHATHISTORY LATEST without a bound Fixes: 5e56cc30c538 ("downstream: fix inverted range in CHATHISTORY LATEST with a timestamp") --- downstream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/downstream.go b/downstream.go index c99552c..418873d 100644 --- a/downstream.go +++ b/downstream.go @@ -2878,7 +2878,7 @@ func (dc *downstreamConn) handleMessageRegistered(ctx context.Context, msg *irc. var bounds [2]time.Time bounds[0] = parseChatHistoryBound(boundsStr[0]) if subcommand == "LATEST" && boundsStr[0] == "*" { - bounds[0] = time.Now() + bounds[0] = time.Time{} } else if bounds[0].IsZero() { return ircError{&irc.Message{ Command: "FAIL",