diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2016-02-20 17:04:05 +0300 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2016-05-08 17:45:52 +0300 |
commit | a107fb3d71b076bef4d829384bab9731e96001d6 (patch) | |
tree | e150701242569c87b05b8d2b676c31c4f54e49c5 /src/murmur/Messages.cpp | |
parent | ee1988eb4b3b35053c110a765314c804d27069f6 (diff) |
grpc: fix formatting of textMessageFilter result handling.
Diffstat (limited to 'src/murmur/Messages.cpp')
-rw-r--r-- | src/murmur/Messages.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/murmur/Messages.cpp b/src/murmur/Messages.cpp index 87d451d82..ef8e5ca71 100644 --- a/src/murmur/Messages.cpp +++ b/src/murmur/Messages.cpp @@ -1113,13 +1113,17 @@ void Server::msgTextMessage(ServerUser *uSource, MumbleProto::TextMessage &msg) int res = 0; emit textMessageFilterSig(res, uSource, msg); switch (res) { - //case 0: // accept - // break; - case 1: // reject - PERM_DENIED(uSource, uSource->cChannel, ChanACL::TextMessage); - return; - case 2: // drop - return; + // Accept + case 0: + // No-op. + break; + // Reject + case 1: + PERM_DENIED(uSource, uSource->cChannel, ChanACL::TextMessage); + return; + // Drop + case 2: + return; } QString text = u8(msg.message()); |