Diff

plugins/mod_pubsub/pubsub.lib.lua @ 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
parent 9109:31bf4b3abc7f
child 9115:fddebfaae7d9
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];