aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2014-10-14 10:58:11 +0100
committerMatthew Wild <mwild1@gmail.com>2014-10-14 10:58:11 +0100
commitdc951d561795a325328e01697f60aef0657ad5e5 (patch)
tree72dc9562e9fda9ddf2d220f6ccf61b48a07230ec /plugins/mod_pubsub.lua
parentfd494572e74d42cb8e249e116781cfe4edc0db50 (diff)
downloadprosody-dc951d561795a325328e01697f60aef0657ad5e5.tar.gz
prosody-dc951d561795a325328e01697f60aef0657ad5e5.zip
mod_pubsub: Fix error type of 'forbidden' (change from 'cancel' to 'auth')
Diffstat (limited to 'plugins/mod_pubsub.lua')
-rw-r--r--plugins/mod_pubsub.lua2
1 files changed, 1 insertions, 1 deletions
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];