Don't store history for NickServ

Closes: https://todo.sr.ht/~emersion/soju/104
This commit is contained in:
Simon Ser 2021-03-16 09:54:29 +01:00
parent dab91736db
commit 384075a6ed

View file

@ -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 {