aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-08-04 21:37:48 +0100
committerMatthew Wild <mwild1@gmail.com>2018-08-04 21:37:48 +0100
commita6b978b6d071347cdbebf5110c846da12f165e8f (patch)
tree63799c05b05ebcbb0d2f990cbd3e30cc0ec7ee61 /plugins/mod_pubsub
parent8bc6f5274b12b814a708f4a51e822c9154ea7ad2 (diff)
downloadprosody-a6b978b6d071347cdbebf5110c846da12f165e8f.tar.gz
prosody-a6b978b6d071347cdbebf5110c846da12f165e8f.zip
pubsub.lib: Add support for precondition-not-met error
Diffstat (limited to 'plugins/mod_pubsub')
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua
index d5af40c4..720f68f8 100644
--- a/plugins/mod_pubsub/pubsub.lib.lua
+++ b/plugins/mod_pubsub/pubsub.lib.lua
@@ -29,6 +29,7 @@ local pubsub_errors = {
["not-allowed"] = { "cancel", "not-allowed" };
["not-acceptable"] = { "modify", "not-acceptable" };
["internal-server-error"] = { "wait", "internal-server-error" };
+ ["precondition-not-met"] = { "cancel", "conflict", nil, "precondition-not-met" };
};
local function pubsub_error_reply(stanza, error)
local e = pubsub_errors[error];