diff options
author | Simon Ser <contact@emersion.fr> | 2022-02-25 21:05:10 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-02-25 21:05:10 +0100 |
commit | dc58a7079463c12cd0901fe6d5d4df7d26df4bc1 (patch) | |
tree | c70dbb8317735dcf2e15bb032e6433d7d3191dd4 /user.go | |
parent | 379e07f7d8ac21d110c3f95b5512ed4f9457ce6e (diff) |
When fetching messages via draft/chathistory from a conversation
with another user, soju would send the following:
:sender PRIVMSG sender :hey
instead of
:sender PRIVMSG recipient :hey
because the file-system message store format doesn't contain the
original PRIVMSG target.
Fix this by doing some guesswork.
Diffstat (limited to 'user.go')
-rw-r--r-- | user.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -451,7 +451,7 @@ func newUser(srv *Server, record *User) *user { var msgStore messageStore if logPath := srv.Config().LogPath; logPath != "" { - msgStore = newFSMessageStore(logPath, record.Username) + msgStore = newFSMessageStore(logPath, record) } else { msgStore = newMemoryMessageStore() } |