Browse Source

clarify the message for registered usernames (#1909)

pull/1910/head
Meisam 3 years ago committed by GitHub
parent
commit
482e1a705a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      core/chat/events.go

2
core/chat/events.go

@ -46,7 +46,7 @@ func (s *Server) userNameChanged(eventData chatClientEvent) { @@ -46,7 +46,7 @@ func (s *Server) userNameChanged(eventData chatClientEvent) {
log.Errorln("error checking if name is available", err)
return
} else if !available {
message := fmt.Sprintf("You cannot change your name to **%s**, it is already in use.", proposedUsername)
message := fmt.Sprintf("The name **%s** has been already registered. If this is your name, please authenticate.", proposedUsername)
s.sendActionToClient(eventData.client, message)
// Resend the client's user so their username is in sync.

Loading…
Cancel
Save