Add UserRemove handling for kick and ban.
authorMartin Johansson <martin@fatbob.nu>
Fri, 24 Feb 2012 10:51:45 +0000 (11:51 +0100)
committerMartin Johansson <martin@fatbob.nu>
Fri, 24 Feb 2012 10:51:45 +0000 (11:51 +0100)
src/messages.c
src/messages.h

index c8dfb5d9a0f15ef8c092c3a902cbaa86d247e4a9..4aa975e6bb8acb54c17e519d7d64031ec92d45e1 100644 (file)
@@ -749,6 +749,15 @@ message_t *Msg_networkToMessage(uint8_t *data, int size)
                        goto err_out;
                break;
        }
+       case UserRemove:
+       {
+               msg = Msg_create_nopayload(UserRemove);
+               msg->unpacked = true;
+               msg->payload.userRemove = mumble_proto__user_remove__unpack(NULL, msgLen, msgData);
+               if (msg->payload.userRemove == NULL)
+                       goto err_out;
+               break;
+       }
 
        default:
                Log_warn("Unsupported message %d", messageType);
index dfd3f97ef49527f8de386beba19884cd920faba2..24e9967e3b854fa14ed4ff647155bb1cc0b75b66 100644 (file)
@@ -62,6 +62,7 @@
 #define PERM_ALL 0xf07ff
 
 #define PERM_DEFAULT (PERM_TRAVERSE | PERM_ENTER | PERM_SPEAK | PERM_WHISPER | PERM_TEXTMESSAGE | PERM_MAKETEMPCHANNEL)
+#define PERM_ADMIN (PERM_DEFAULT | PERM_MUTEDEAFEN | PERM_MOVE | PERM_KICK | PERM_BAN)
 
 typedef enum {
        Version,