Don't send RPL_NOTOPIC on JOIN

As per https://modern.ircdocs.horse/#join-message
This commit is contained in:
Simon Ser 2022-01-10 10:36:45 +01:00
parent bc727496d0
commit 7060547809

View file

@ -12,7 +12,10 @@ func forwardChannel(dc *downstreamConn, ch *upstreamChannel) {
panic("Tried to forward a partial channel")
}
sendTopic(dc, ch)
// RPL_NOTOPIC shouldn't be sent on JOIN
if ch.Topic != "" {
sendTopic(dc, ch)
}
sendNames(dc, ch)
}