From: Martin Johansson Date: Fri, 24 Feb 2012 10:51:45 +0000 (+0100) Subject: Add UserRemove handling for kick and ban. X-Git-Url: http://git.code-monkey.de/?p=umurmur.git;a=commitdiff_plain;h=04e1b924dfa4950e852ead79b2a51a5687bf8b41 Add UserRemove handling for kick and ban. --- diff --git a/src/messages.c b/src/messages.c index c8dfb5d..4aa975e 100644 --- a/src/messages.c +++ b/src/messages.c @@ -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); diff --git a/src/messages.h b/src/messages.h index dfd3f97..24e9967 100644 --- a/src/messages.h +++ b/src/messages.h @@ -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,