msgstore_memory: add comment about Append dropping messages

This commit is contained in:
Simon Ser 2021-11-03 18:25:39 +01:00
parent 193c0afd69
commit 0b6b687d70

View File

@ -77,6 +77,8 @@ func (ms *memoryMessageStore) LastMsgID(network *Network, entity string, t time.
func (ms *memoryMessageStore) Append(network *Network, entity string, msg *irc.Message) (string, error) { func (ms *memoryMessageStore) Append(network *Network, entity string, msg *irc.Message) (string, error) {
switch msg.Command { switch msg.Command {
case "PRIVMSG", "NOTICE": case "PRIVMSG", "NOTICE":
// Only append these messages, because LoadLatestID shouldn't return
// other kinds of message.
default: default:
return "", nil return "", nil
} }