mirror of
https://github.com/gissleh/irc.git
synced 2026-10-19 04:52:54 +00:00
client: Added Part method with a similar signature to Join.
This commit is contained in:
@@ -429,6 +429,11 @@ func (client *Client) Join(channels ...string) error {
|
|||||||
return client.Sendf("JOIN %s", strings.Join(channels, ","))
|
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
|
// Target gets a target by kind and name
|
||||||
func (client *Client) Target(kind string, name string) Target {
|
func (client *Client) Target(kind string, name string) Target {
|
||||||
client.mutex.RLock()
|
client.mutex.RLock()
|
||||||
|
|||||||
Reference in New Issue
Block a user