summaryrefslogtreecommitdiff
path: root/user.go
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-02-25 21:05:10 +0100
committerSimon Ser <contact@emersion.fr>2022-02-25 21:05:10 +0100
commitdc58a7079463c12cd0901fe6d5d4df7d26df4bc1 (patch)
treec70dbb8317735dcf2e15bb032e6433d7d3191dd4 /user.go
parent379e07f7d8ac21d110c3f95b5512ed4f9457ce6e (diff)
msgstore_fs: fix direct message targetsHEADmaster
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.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/user.go b/user.go
index d31483b..0364ff3 100644
--- a/user.go
+++ b/user.go
@@ -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()
}