Rename sendNetworkHistory to sendNetworkBacklog

"History" is a little bit over-loaded with CHATHISTORY support.
This commit is contained in:
Simon Ser 2021-02-10 10:23:51 +01:00
parent 08b1010939
commit c14118f7f9
2 changed files with 3 additions and 3 deletions

View File

@ -942,7 +942,7 @@ func (dc *downstreamConn) welcome() error {
// Only send history if we're the first connected client with that name
// for the network
if _, ok := net.offlineClients[dc.clientName]; ok {
dc.sendNetworkHistory(net)
dc.sendNetworkBacklog(net)
delete(net.offlineClients, dc.clientName)
}
@ -978,7 +978,7 @@ func (dc *downstreamConn) messageSupportsHistory(msg *irc.Message) bool {
return false
}
func (dc *downstreamConn) sendNetworkHistory(net *network) {
func (dc *downstreamConn) sendNetworkBacklog(net *network) {
if dc.caps["draft/chathistory"] || dc.user.msgStore == nil {
return
}

View File

@ -231,7 +231,7 @@ func (net *network) attach(ch *Channel) {
}
if net.history[ch.Name] != nil {
dc.sendNetworkHistory(net)
dc.sendNetworkBacklog(net)
}
})
}