From dbfcafeb754aa055d6017feff5659cbdc4c173bd Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 14 Oct 2014 10:58:11 +0100 Subject: mod_pubsub: Fix error type of 'forbidden' (change from 'cancel' to 'auth') --- plugins/mod_pubsub.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_pubsub.lua') diff --git a/plugins/mod_pubsub.lua b/plugins/mod_pubsub.lua index 926ed4f2..04f2b615 100644 --- a/plugins/mod_pubsub.lua +++ b/plugins/mod_pubsub.lua @@ -39,7 +39,7 @@ local pubsub_errors = { ["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]; -- cgit v1.2.3