Browse Source

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

master
Gisle Aune 6 years ago
parent
commit
cfac942c8a
  1. 6
      channel.go

6
channel.go

@ -53,12 +53,6 @@ func (channel *Channel) Handle(event *Event, client *Client) {
} }
case "packet.part", "packet.quit": 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) channel.userlist.Remove(event.Nick)
} }
case "packet.nick": case "packet.nick":

Loading…
Cancel
Save