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.

34 lines
620 B

  1. package irc
  2. // A Status contains
  3. type Status struct {
  4. id string
  5. }
  6. // ID returns a unique ID for the status target.
  7. func (status *Status) ID() string {
  8. return status.id
  9. }
  10. // Kind returns "status"
  11. func (status *Status) Kind() string {
  12. return "status"
  13. }
  14. // Name returns "status"
  15. func (status *Status) Name() string {
  16. return "Status"
  17. }
  18. func (status *Status) State() ClientStateTarget {
  19. return ClientStateTarget{
  20. Kind: "status",
  21. Name: "Status",
  22. Users: nil,
  23. }
  24. }
  25. // AddHandler handles messages routed to this status by the client's event loop
  26. func (status *Status) Handle(event *Event, client *Client) {
  27. }