Removed superfluous target removal for PART where nick is client.Nick()

This commit is contained in:
2018-08-05 13:42:35 +02:00
parent 8e13fe507e
commit cfac942c8a
-6
View File
@@ -53,12 +53,6 @@ func (channel *Channel) Handle(event *Event, client *Client) {
}
case "packet.part", "packet.quit":
{
// Close the target if the client has left
if event.Nick == client.Nick() && event.Name() == "packet.part" {
channel.parted = true
client.RemoveTarget(channel)
}
channel.userlist.Remove(event.Nick)
}
case "packet.nick":