Send empty history for service
Fixes error when fetching chat history for BouncerServ.
This commit is contained in:
parent
fba1fdb31e
commit
0f2f4de275
@ -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)
|
store, ok := dc.user.msgStore.(chatHistoryMessageStore)
|
||||||
if !ok {
|
if !ok {
|
||||||
return ircError{&irc.Message{
|
return ircError{&irc.Message{
|
||||||
|
Loading…
Reference in New Issue
Block a user