* fix #2133

Don't record NICK and QUIT in history for invisible auditorium members
This commit is contained in:
Shivaram Lingamneni 2024-03-17 11:42:39 -04:00 committed by GitHub
parent 681e8b1292
commit 8d082865da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 29 additions and 4 deletions

View file

@ -120,7 +120,9 @@ func performNickChange(server *Server, client *Client, target *Client, session *
}
for _, channel := range target.Channels() {
channel.AddHistoryItem(histItem, details.account)
if channel.memberIsVisible(client) {
channel.AddHistoryItem(histItem, details.account)
}
}
newCfnick := target.NickCasefolded()