Skip to content

Commit

Permalink
Retry last fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thoj committed Jul 28, 2016
1 parent 5f6269a commit d831bc9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions irc_nicktrack.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,13 @@ func (irc *Connection) SetupNickTrack() {
})

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

irc.AddCallback("QUIT", func(e *Event) {
channelName := e.Nick
delete(irc.Channels[channelName].Users, e.Nick)
for k, _ := range irc.Channels {
delete(irc.Channels[k].Users, e.Nick)
}
})
}

0 comments on commit d831bc9

Please sign in to comment.