msgstore_memory: add comment about Append dropping messages
This commit is contained in:
parent
193c0afd69
commit
0b6b687d70
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user