telepathy-gabble: Map policy-violation to Send_Error_Permission_Denied
Will Thompson
wjt at kemper.freedesktop.org
Mon Mar 4 04:22:17 PST 2013
Module: telepathy-gabble
Branch: master
Commit: 96e5379434adde498624517188be9183e3d4a443
URL: http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=96e5379434adde498624517188be9183e3d4a443
Author: Will Thompson <will.thompson at collabora.co.uk>
Date: Wed Feb 20 09:19:56 2013 +0000
Map policy-violation to Send_Error_Permission_Denied
This code is used by prosody's MUC rate-limiter.
---
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 49f726c..01bb717 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:
More information about the telepathy-commits
mailing list