mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-19 21:59:59 -08:00
Unregistered users don't have textures nor have they commments.
This commit is contained in:
parent
ed602e9d8c
commit
1c297dfbf8
1 changed files with 6 additions and 0 deletions
|
|
@ -1122,6 +1122,9 @@ func (server *Server) handleRequestBlob(client *Client, msg *Message) {
|
||||||
if len(blobreq.SessionTexture) > 0 {
|
if len(blobreq.SessionTexture) > 0 {
|
||||||
for _, sid := range blobreq.SessionTexture {
|
for _, sid := range blobreq.SessionTexture {
|
||||||
if target, ok := server.clients[sid]; ok {
|
if target, ok := server.clients[sid]; ok {
|
||||||
|
if target.user == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if target.user.HasTexture() {
|
if target.user.HasTexture() {
|
||||||
buf, err := globalBlobstore.Get(target.user.TextureBlob)
|
buf, err := globalBlobstore.Get(target.user.TextureBlob)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
@ -1143,6 +1146,9 @@ func (server *Server) handleRequestBlob(client *Client, msg *Message) {
|
||||||
if len(blobreq.SessionComment) > 0 {
|
if len(blobreq.SessionComment) > 0 {
|
||||||
for _, sid := range blobreq.SessionComment {
|
for _, sid := range blobreq.SessionComment {
|
||||||
if target, ok := server.clients[sid]; ok {
|
if target, ok := server.clients[sid]; ok {
|
||||||
|
if target.user == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if target.user.HasComment() {
|
if target.user.HasComment() {
|
||||||
buf, err := globalBlobstore.Get(target.user.CommentBlob)
|
buf, err := globalBlobstore.Get(target.user.CommentBlob)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue