Use database.GetNick in network.isHighlight

The network nickname can be empty, and defaults to the global nick
setting.
This commit is contained in:
Simon Ser 2023-04-16 21:24:27 +02:00
parent e5bce700a9
commit 582ac97c24

View File

@ -446,7 +446,7 @@ func (net *network) isHighlight(msg *irc.Message) bool {
text := msg.Params[1] text := msg.Params[1]
nick := net.Nick nick := database.GetNick(&net.user.User, &net.Network)
if net.conn != nil { if net.conn != nil {
nick = net.conn.nick nick = net.conn.nick
} }