aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-01 04:32:26 +0200
committerKim Alvefur <zash@zash.se>2018-07-01 04:32:26 +0200
commit530ceb8a401296d38aa5c38ee150ecb42fb654e6 (patch)
tree91294bafc69120cf038df2ff939ecd8b4b039070 /plugins
parent3d14011cf28b454d0243782e68d943b25f7c6013 (diff)
downloadprosody-530ceb8a401296d38aa5c38ee150ecb42fb654e6.tar.gz
prosody-530ceb8a401296d38aa5c38ee150ecb42fb654e6.zip
mod_pubsub: Make pubsub.lib aware of internal-server-error condition
Diffstat (limited to 'plugins')
-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 2ec6e8de..4ed4bc86 100644
--- a/plugins/mod_pubsub/pubsub.lib.lua
+++ b/plugins/mod_pubsub/pubsub.lib.lua
@@ -26,6 +26,7 @@ local pubsub_errors = {
["not-subscribed"] = { "modify", "unexpected-request", nil, "not-subscribed" };
["forbidden"] = { "auth", "forbidden" };
["not-allowed"] = { "cancel", "not-allowed" };
+ ["internal-server-error"] = { "wait", "internal-server-error" };
};
local function pubsub_error_reply(stanza, error)
local e = pubsub_errors[error];