mirror of https://github.com/fluffle/goirc
Check all nicks against current channel contents for 353 handler.
This commit is contained in:
parent
6c1d345f0b
commit
b0e0be0fe3
|
@ -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]
|
||||||
|
|
Loading…
Reference in New Issue