mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-13 11:28:10 -07:00
update ClientLookupSet when username changes
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user