# HG changeset patch # User Matthew Wild # Date 1533415068 -3600 # Node ID 3dbecb399dfb8349dee9a83b830028d824bc85eb # Parent 31bf4b3abc7ff2443b5015292989628b5df6e350 pubsub.lib: Add support for precondition-not-met error diff -r 31bf4b3abc7f -r 3dbecb399dfb plugins/mod_pubsub/pubsub.lib.lua --- 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];