mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-23 19:41:58 -08:00
update ClientLookupSet when username changes
This commit is contained in:
parent
76852b0370
commit
adde42a1bf
2 changed files with 72 additions and 53 deletions
|
|
@ -346,7 +346,9 @@ func (msg *RFC2812UserCommand) HandleRegServer(server *Server) {
|
|||
|
||||
func (msg *UserCommand) HandleRegServer2(server *Server) {
|
||||
client := msg.Client()
|
||||
server.clients.Remove(client)
|
||||
client.username, client.realname = msg.username, msg.realname
|
||||
server.clients.Add(client)
|
||||
server.tryRegister(client)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue