|
@@ -543,7 +543,7 @@ func chathistoryHandler(server *Server, client *Client, msg ircmsg.Message, rb *
|
543
|
543
|
if err == utils.ErrInvalidParams {
|
544
|
544
|
rb.Add(nil, server.name, "FAIL", "CHATHISTORY", "INVALID_PARAMS", msg.Params[0], client.t("Invalid parameters"))
|
545
|
545
|
} else if !listTargets && sequence == nil {
|
546
|
|
- rb.Add(nil, server.name, "FAIL", "CHATHISTORY", "INVALID_TARGET", utils.SafeErrorParam(target), client.t("Messages could not be retrieved"))
|
|
546
|
+ rb.Add(nil, server.name, "FAIL", "CHATHISTORY", "INVALID_TARGET", msg.Params[0], utils.SafeErrorParam(target), client.t("Messages could not be retrieved"))
|
547
|
547
|
} else if err != nil {
|
548
|
548
|
rb.Add(nil, server.name, "FAIL", "CHATHISTORY", "MESSAGE_ERROR", msg.Params[0], client.t("Messages could not be retrieved"))
|
549
|
549
|
} else {
|