From 0f2f4de275c1d5d9c480b197f8575fdbda411a67 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 13 Sep 2021 11:36:25 +0200 Subject: [PATCH] Send empty history for service Fixes error when fetching chat history for BouncerServ. --- downstream.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/downstream.go b/downstream.go index e1683fd..4e6ed54 100644 --- a/downstream.go +++ b/downstream.go @@ -2098,6 +2098,12 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error { }} } + // We don't save history for our service + if casemapASCII(target) == serviceNickCM { + dc.SendBatch("chathistory", []string{target}, nil, func(batchRef irc.TagValue) {}) + return nil + } + store, ok := dc.user.msgStore.(chatHistoryMessageStore) if !ok { return ircError{&irc.Message{