summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2013-02-20 09:19:56 +0000
committerWill Thompson <will.thompson@collabora.co.uk>2013-02-22 00:24:04 +0000
commit96e5379434adde498624517188be9183e3d4a443 (patch)
treee1d4e4a0eb226fc13edcae32597ce9beec6094db
parent21b752bf71edc6889161dca905c3c8300c254355 (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.c1
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: