Check all nicks against current channel contents for 353 handler.

This commit is contained in:
Alex Bramley 2011-09-12 23:21:15 +01:00
parent 6c1d345f0b
commit b0e0be0fe3
1 changed files with 2 additions and 3 deletions

View File

@ -260,9 +260,8 @@ func (conn *Conn) h_353(line *Line) {
// we don't know this nick yet!
n = conn.NewNick(nick, "", "", "")
}
if n != conn.Me {
// we will be in the names list, but should also be in
// the channel's nick list from the JOIN handler above
if _, ok := ch.Nicks[n]; !ok {
// This nick isn't associated with this channel yet!
ch.AddNick(n)
}
p := ch.Nicks[n]