mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-23 19:31:57 -08:00
Always show correct name for registered users.
This commit is contained in:
parent
296c94764c
commit
15e88575fc
3 changed files with 8 additions and 25 deletions
16
client.go
16
client.go
|
|
@ -547,19 +547,3 @@ func (client *Client) sendChannelTree(channel *Channel) {
|
|||
client.sendChannelTree(subchannel)
|
||||
}
|
||||
}
|
||||
|
||||
// Send the userlist to a client.
|
||||
func (client *Client) sendUserList() {
|
||||
server := client.server
|
||||
for _, client := range server.clients {
|
||||
err := client.sendProtoMessage(MessageUserState, &mumbleproto.UserState{
|
||||
Session: proto.Uint32(client.Session),
|
||||
Name: proto.String(client.Username),
|
||||
ChannelId: proto.Uint32(0),
|
||||
})
|
||||
if err != nil {
|
||||
log.Printf("Unable to send UserList")
|
||||
continue
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue