mirror of
https://github.com/gissleh/irc.git
synced 2026-10-15 16:02:54 +00:00
Removed superfluous target removal for PART where nick is client.Nick()
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user