From 178c9989bc60502030c0511034074415c97cdbf5 Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Wed, 14 Nov 2018 21:20:13 +0100 Subject: [PATCH] client: Added Part method with a similar signature to Join. --- client.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client.go b/client.go index 4661cb4..708b0e3 100644 --- a/client.go +++ b/client.go @@ -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()