mirror of
https://github.com/gissleh/irc.git
synced 2026-10-15 16:02:54 +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
|
||||
if channel, ok := target.(*Channel); ok && !channel.parted {
|
||||
client.SendQueuedf("/part %s")
|
||||
client.SendQueuedf("/part %s", channel.Name())
|
||||
}
|
||||
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user