Browse Source

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

master
Gisle Aune 6 years ago
parent
commit
d42df0d7a0
  1. 2
      client.go

2
client.go

@ -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

Loading…
Cancel
Save