client: Fixed incorrect comand being sent when parting a closed target.

This commit is contained in:
2018-11-27 17:58:44 +01:00
parent 650ea0ce10
commit d42df0d7a0
+1 -1
View File
@@ -600,7 +600,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", channel.Name())
client.SendQueuedf("PART %s", channel.Name())
}
return