client: Added Part method with a similar signature to Join.

This commit is contained in:
2018-11-14 21:20:13 +01:00
parent 992d71dde4
commit 178c9989bc
+5
View File
@@ -429,6 +429,11 @@ func (client *Client) Join(channels ...string) error {
return client.Sendf("JOIN %s", strings.Join(channels, ","))
}
// Part parts one or more channels.
func (client *Client) Part(channels ...string) error {
return client.Sendf("PART %s", strings.Join(channels, ","))
}
// Target gets a target by kind and name
func (client *Client) Target(kind string, name string) Target {
client.mutex.RLock()