mirror of https://github.com/gissleh/irc.git
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
34 lines
620 B
package irc
|
|
|
|
// A Status contains
|
|
type Status struct {
|
|
id string
|
|
}
|
|
|
|
// ID returns a unique ID for the status target.
|
|
func (status *Status) ID() string {
|
|
return status.id
|
|
}
|
|
|
|
// Kind returns "status"
|
|
func (status *Status) Kind() string {
|
|
return "status"
|
|
}
|
|
|
|
// Name returns "status"
|
|
func (status *Status) Name() string {
|
|
return "Status"
|
|
}
|
|
|
|
func (status *Status) State() ClientStateTarget {
|
|
return ClientStateTarget{
|
|
Kind: "status",
|
|
Name: "Status",
|
|
Users: nil,
|
|
}
|
|
}
|
|
|
|
// AddHandler handles messages routed to this status by the client's event loop
|
|
func (status *Status) Handle(event *Event, client *Client) {
|
|
|
|
}
|