Changeset

9110:3dbecb399dfb

pubsub.lib: Add support for precondition-not-met error
author Matthew Wild <mwild1@gmail.com>
date Sat, 04 Aug 2018 21:37:48 +0100
parents 9109:31bf4b3abc7f
children 9111:bc7473fb7ad3
files plugins/mod_pubsub/pubsub.lib.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_pubsub/pubsub.lib.lua	Sat Aug 04 21:36:59 2018 +0100
+++ b/plugins/mod_pubsub/pubsub.lib.lua	Sat Aug 04 21:37:48 2018 +0100
@@ -29,6 +29,7 @@
 	["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];