mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-29 22:21:58 -08:00
Make it possible to customize the super user name
This commit is contained in:
parent
dd4cf8748f
commit
c876ee6273
3 changed files with 24 additions and 12 deletions
|
|
@ -141,9 +141,9 @@ func (client *Client) UserId() int {
|
|||
}
|
||||
|
||||
// ShownName gets the client's shown name.
|
||||
func (client *Client) ShownName() string {
|
||||
func (client *Client) ShownName(suName string) string {
|
||||
if client.IsSuperUser() {
|
||||
return "SuperUser"
|
||||
return suName
|
||||
}
|
||||
if client.IsRegistered() {
|
||||
return client.user.Name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue