implement Client.Topic()

This commit is contained in:
Liam Stanley 2016-12-10 05:54:41 -05:00
parent 817b616267
commit c95d531783

@ -661,3 +661,9 @@ func (c *Client) Whowas(nick string) ([]*User, error) {
return users, nil
}
// Topic sets the topic of channel to message. Does not verify the length
// of the topic.
func (c *Client) Topic(channel, message string) error {
return c.Send(&Event{Command: TOPIC, Params: []string{channel}, Trailing: message})
}