From a6b978b6d071347cdbebf5110c846da12f165e8f Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 4 Aug 2018 21:37:48 +0100 Subject: pubsub.lib: Add support for precondition-not-met error --- plugins/mod_pubsub/pubsub.lib.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/mod_pubsub') 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]; -- cgit v1.2.3