Changeset 456 in code for trunk


Ignore:
Timestamp:
Mar 5, 2021, 8:53:59 AM (4 years ago)
Author:
hubert
Message:

Send correct CHATHISTORY error messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/downstream.go

    r452 r456  
    17601760                        return ircError{&irc.Message{
    17611761                                Command: irc.ERR_UNKNOWNCOMMAND,
    1762                                 Params:  []string{dc.nick, subcommand, "Unknown command"},
     1762                                Params:  []string{dc.nick, "CHATHISTORY", "Unknown command"},
    17631763                        }}
    17641764                }
     
    17741774                        return ircError{&irc.Message{
    17751775                                Command: "FAIL",
    1776                                 Params:  []string{"CHATHISTORY", "UNKNOWN_CRITERIA", criteria, "Unknown criteria"},
     1776                                Params:  []string{"CHATHISTORY", "INVALID_PARAMS", subcommand, criteria, "Unknown criteria"},
    17771777                        }}
    17781778                }
     
    17821782                        return ircError{&irc.Message{
    17831783                                Command: "FAIL",
    1784                                 Params:  []string{"CHATHISTORY", "INVALID_CRITERIA", criteria, "Invalid criteria"},
     1784                                Params:  []string{"CHATHISTORY", "INVALID_PARAMS", subcommand, criteria, "Invalid criteria"},
    17851785                        }}
    17861786                }
     
    17901790                        return ircError{&irc.Message{
    17911791                                Command: "FAIL",
    1792                                 Params:  []string{"CHATHISTORY", "INVALID_LIMIT", limitStr, "Invalid limit"},
     1792                                Params:  []string{"CHATHISTORY", "INVALID_PARAMS", subcommand, limitStr, "Invalid limit"},
    17931793                        }}
    17941794                }
Note: See TracChangeset for help on using the changeset viewer.