aboutsummaryrefslogtreecommitdiffstats
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
commit8e393a01c6206e708346664d834408063fdb0ad9 (patch)
tree91294bafc69120cf038df2ff939ecd8b4b039070
parentd61f5d7c910d778e33de87b90e204bb73b6a498e (diff)
downloadprosody-8e393a01c6206e708346664d834408063fdb0ad9.tar.gz
prosody-8e393a01c6206e708346664d834408063fdb0ad9.zip
mod_pubsub: Make pubsub.lib aware of internal-server-error condition
-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];