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! // we don't know this nick yet!
n = conn.NewNick(nick, "", "", "") n = conn.NewNick(nick, "", "", "")
} }
if n != conn.Me { if _, ok := ch.Nicks[n]; !ok {
// we will be in the names list, but should also be in // This nick isn't associated with this channel yet!
// the channel's nick list from the JOIN handler above
ch.AddNick(n) ch.AddNick(n)
} }
p := ch.Nicks[n] p := ch.Nicks[n]