Fixed auto-PART not working when closing channel target.

This commit is contained in:
2018-08-05 13:40:25 +02:00
parent 9aa04bbc10
commit 8e13fe507e
+1 -1
View File
@@ -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