mirror of
https://github.com/gissleh/irc.git
synced 2026-10-15 17:42:53 +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":
|
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":
|
||||||
|
|||||||
Reference in New Issue
Block a user