Browse Source

fix #1731

CHATHISTORY INVALID_TARGETS was missing the subcommand parameter
tags/v2.8.0-rc1
Shivaram Lingamneni 3 years ago
parent
commit
d0801e45a8
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      irc/handlers.go
  2. 1
    1
      irctest

+ 1
- 1
irc/handlers.go View File

@@ -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 {

+ 1
- 1
irctest

@@ -1 +1 @@
1
-Subproject commit cd58d14608e4b800aabaa5af395b2a02a71e1e1f
1
+Subproject commit c0a4532f35a3d299c6b59d3fd6c0ef15a03b44a7

Loading…
Cancel
Save