3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00

try to fix nick message sending

This commit is contained in:
Jeremy Latt 2014-02-13 10:19:53 -08:00
parent c327042c94
commit 261aaa128f

View File

@ -238,20 +238,18 @@ func (m *NickCommand) HandleServer(s *Server) {
return
}
if !c.HasNick() {
c.nick = m.nickname
}
reply := RplNick(c, m.nickname)
s.clients.Remove(c)
c.nick = m.nickname
s.clients.Add(c)
iclients := c.InterestedClients()
iclients.Add(c)
for iclient := range iclients {
iclient.Reply(reply)
}
s.clients.Remove(c)
c.nick = m.nickname
s.clients.Add(c)
s.tryRegister(c)
}