diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2013-02-20 09:19:56 +0000 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2013-02-22 00:24:04 +0000 |
commit | 96e5379434adde498624517188be9183e3d4a443 (patch) | |
tree | e1d4e4a0eb226fc13edcae32597ce9beec6094db | |
parent | 21b752bf71edc6889161dca905c3c8300c254355 (diff) |
Map policy-violation to Send_Error_Permission_Denied
This code is used by prosody's MUC rate-limiter.
-rw-r--r-- | src/message-util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/message-util.c b/src/message-util.c index 49f726c3d..01bb71735 100644 --- a/src/message-util.c +++ b/src/message-util.c @@ -241,6 +241,7 @@ gabble_tp_send_error_from_wocky_xmpp_error (WockyXmppError err) case WOCKY_XMPP_ERROR_FORBIDDEN: case WOCKY_XMPP_ERROR_NOT_AUTHORIZED: + case WOCKY_XMPP_ERROR_POLICY_VIOLATION: return TP_CHANNEL_TEXT_SEND_ERROR_PERMISSION_DENIED; case WOCKY_XMPP_ERROR_RESOURCE_CONSTRAINT: |