From 19dbe10c9940cebc7d95839515299a810f654c4e Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Wed, 26 Mar 2025 21:21:05 -0400 Subject: [PATCH] fix panic on KILL (#2234) Introduced by #2218, reported by knolle --- irc/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/client.go b/irc/client.go index 821b0403..5558605a 100644 --- a/irc/client.go +++ b/irc/client.go @@ -1196,7 +1196,7 @@ func (client *Client) Quit(message string, session *Session) { // #364: don't send QUIT lines to unregistered clients if client.registered { quitMsg := ircmsg.MakeMessage(nil, nuh, "QUIT", message) - if session.capabilities.Has(caps.ServerTime) { + if sess.capabilities.Has(caps.ServerTime) { quitMsg.SetTag("time", now.Format(utils.IRCv3TimestampFormat)) } finalData, _ = quitMsg.LineBytesStrict(false, MaxLineLen)