Mirror of github.com/gissleh/irc
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
271 B

6 years ago
  1. package irc
  2. // NewErrorEvent makes an event of kind `error` and verb `code` with the text.
  3. // It's absolutely trivial, but it's good to have standarized.
  4. func NewErrorEvent(code, text string) Event {
  5. event := NewEvent("error", code)
  6. event.Text = text
  7. return event
  8. }