|
@@ -2770,14 +2770,14 @@ func markReadHandler(server *Server, client *Client, msg ircmsg.Message, rb *Res
|
2770
|
2770
|
}
|
2771
|
2771
|
|
2772
|
2772
|
// "MARKREAD client set command": MARKREAD <target> <timestamp>
|
2773
|
|
- readTimestamp := msg.Params[1]
|
|
2773
|
+ readTimestamp := strings.TrimPrefix(msg.Params[1], "timestamp=")
|
2774
|
2774
|
readTime, err := time.Parse(IRCv3TimestampFormat, readTimestamp)
|
2775
|
2775
|
if err != nil {
|
2776
|
2776
|
rb.Add(nil, server.name, "FAIL", "MARKREAD", "INVALID_PARAMS", utils.SafeErrorParam(readTimestamp), client.t("Invalid timestamp"))
|
2777
|
2777
|
return
|
2778
|
2778
|
}
|
2779
|
2779
|
result := client.SetReadMarker(cftarget, readTime)
|
2780
|
|
- readTimestamp = result.Format(IRCv3TimestampFormat)
|
|
2780
|
+ readTimestamp = fmt.Sprintf("timestamp=%s", result.Format(IRCv3TimestampFormat))
|
2781
|
2781
|
// inform the originating session whether it was a success or a no-op:
|
2782
|
2782
|
rb.Add(nil, server.name, "MARKREAD", unfoldedTarget, readTimestamp)
|
2783
|
2783
|
if result.Equal(readTime) {
|