mirror of
https://github.com/gissleh/irc.git
synced 2026-10-19 03:32:54 +00:00
client: Fixed incorrect comand being sent when parting a closed target.
This commit is contained in:
@@ -600,7 +600,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", channel.Name())
|
client.SendQueuedf("PART %s", channel.Name())
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user