mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-23 19:31:57 -08:00
Show correct names for registered users.
This commit is contained in:
parent
58fca6bcf7
commit
76ca3dcebc
2 changed files with 4 additions and 1 deletions
|
|
@ -103,6 +103,9 @@ func (client *Client) UserId() int {
|
|||
|
||||
// Get the client's shown name.
|
||||
func (client *Client) ShownName() string {
|
||||
if client.IsSuperUser() {
|
||||
return "SuperUser"
|
||||
}
|
||||
if client.IsRegistered() {
|
||||
return client.user.Name
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue