Don't send RPL_NOTOPIC on JOIN

As per https://modern.ircdocs.horse/#join-message

git-svn-id: file:///srv/svn/repo/suika/trunk@764 f0ae65fe-ee39-954e-97ec-027ff2717ef4
This commit is contained in:
contact 2022-01-10 09:37:55 +00:00
parent 8d94f8a743
commit e1f09398b1

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)
}