Diff

plugins/mod_pubsub.lua @ 6472:acae6289e0a6

mod_pubsub: Fix error type of 'forbidden' (change from 'cancel' to 'auth')
author Matthew Wild <mwild1@gmail.com>
date Tue, 14 Oct 2014 10:58:11 +0100
parent 5569:c45997aebaa2
line wrap: on
line diff
--- a/plugins/mod_pubsub.lua	Fri Oct 10 00:56:53 2014 +0200
+++ b/plugins/mod_pubsub.lua	Tue Oct 14 10:58:11 2014 +0100
@@ -39,7 +39,7 @@
 	["nodeid-required"] = { "modify", "bad-request", nil, "nodeid-required" };
 	["item-not-found"] = { "cancel", "item-not-found" };
 	["not-subscribed"] = { "modify", "unexpected-request", nil, "not-subscribed" };
-	["forbidden"] = { "cancel", "forbidden" };
+	["forbidden"] = { "auth", "forbidden" };
 };
 function pubsub_error_reply(stanza, error)
 	local e = pubsub_errors[error];