mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-29 07:29:31 +01:00
try to fix nick message sending
This commit is contained in:
parent
c327042c94
commit
261aaa128f
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user