~emersion/soju

0f2f4de275c1d5d9c480b197f8575fdbda411a67 — Simon Ser 11 days ago fba1fdb
Send empty history for service

Fixes error when fetching chat history for BouncerServ.
1 files changed, 6 insertions(+), 0 deletions(-)

M downstream.go
M downstream.go => downstream.go +6 -0
@@ 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{