msgstore_memory: add comment about Append dropping messages

git-svn-id: file:///srv/svn/repo/suika/trunk@669 f0ae65fe-ee39-954e-97ec-027ff2717ef4
This commit is contained in:
contact 2021-11-03 17:25:39 +00:00
parent 9d44ab9586
commit 34689ca82d

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) {
switch msg.Command {
case "PRIVMSG", "NOTICE":
// Only append these messages, because LoadLatestID shouldn't return
// other kinds of message.
default:
return "", nil
}