From b0e0be0fe3a965e361c34de0494117c3505dcdf5 Mon Sep 17 00:00:00 2001 From: Alex Bramley Date: Mon, 12 Sep 2011 23:21:15 +0100 Subject: [PATCH] Check all nicks against current channel contents for 353 handler. --- client/handlers.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/handlers.go b/client/handlers.go index fc6e630..eb74e27 100644 --- a/client/handlers.go +++ b/client/handlers.go @@ -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]