From 582ac97c24474b08fc35e9384d43e9b15dc49802 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sun, 16 Apr 2023 21:24:27 +0200 Subject: [PATCH] Use database.GetNick in network.isHighlight The network nickname can be empty, and defaults to the global nick setting. --- user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user.go b/user.go index d83d14a..5548601 100644 --- a/user.go +++ b/user.go @@ -446,7 +446,7 @@ func (net *network) isHighlight(msg *irc.Message) bool { text := msg.Params[1] - nick := net.Nick + nick := database.GetNick(&net.user.User, &net.Network) if net.conn != nil { nick = net.conn.nick }