Send empty history for service

Fixes error when fetching chat history for BouncerServ.
This commit is contained in:
Simon Ser 2021-09-13 11:36:25 +02:00
parent fba1fdb31e
commit 0f2f4de275

View File

@ -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{