From 384075a6ed28a8f9e1a1d1527d0d57e0d65ceaeb Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 16 Mar 2021 09:54:29 +0100 Subject: [PATCH] Don't store history for NickServ Closes: https://todo.sr.ht/~emersion/soju/104 --- upstream.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/upstream.go b/upstream.go index 91071de..8aac040 100644 --- a/upstream.go +++ b/upstream.go @@ -1702,6 +1702,11 @@ func (uc *upstreamConn) appendLog(entity string, msg *irc.Message) (msgID string if uc.user.msgStore == nil { return "" } + if entity == "NickServ" { + // The messages sent/received from NickServ may contain + // security-related information (like passwords). Don't store these. + return "" + } detached := false if ch, ok := uc.network.channels[entity]; ok {