Skip to content

Commit

Permalink
Fix Quit/PART in nick tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
thoj committed Jul 28, 2016
1 parent 9c09ade commit 5f6269a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions irc_nicktrack.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ func (irc *Connection) SetupNickTrack() {
})

irc.AddCallback("PART", func(e *Event) {
channelName := e.Arguments[0]
channelName := e.Nick
delete(irc.Channels[channelName].Users, e.Nick)
})

irc.AddCallback("QUIT", func(e *Event) {
channelName := e.Arguments[0]
channelName := e.Nick
delete(irc.Channels[channelName].Users, e.Nick)
})
}

0 comments on commit 5f6269a

Please sign in to comment.