mirror of
https://github.com/gissleh/irc.git
synced 2026-10-15 17:42:53 +00:00
Fixed auto-PART not working when closing channel target.
This commit is contained in:
@@ -510,7 +510,7 @@ func (client *Client) RemoveTarget(target Target) (id string, err error) {
|
|||||||
|
|
||||||
// Ensure the channel has been parted
|
// Ensure the channel has been parted
|
||||||
if channel, ok := target.(*Channel); ok && !channel.parted {
|
if channel, ok := target.(*Channel); ok && !channel.parted {
|
||||||
client.SendQueuedf("/part %s")
|
client.SendQueuedf("/part %s", channel.Name())
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user