Don't store history for NickServ

Closes: https://todo.sr.ht/~emersion/soju/104

git-svn-id: file:///srv/svn/repo/suika/trunk@468 f0ae65fe-ee39-954e-97ec-027ff2717ef4
This commit is contained in:
contact 2021-03-16 08:54:29 +00:00
parent 35272526d6
commit edca8b005f

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 {