diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-12-21 03:18:17 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-12-21 03:18:17 +0000 |
commit | 224333805425866e33c721ec9f5435ec38ad0e0b (patch) | |
tree | d29125bdb5d2abb13084fa30672fab2b023361ee /plugins/mod_pubsub.lua | |
parent | ff892a0e5e05f431a88b58a38f86a032ea0cd266 (diff) | |
download | prosody-224333805425866e33c721ec9f5435ec38ad0e0b.tar.gz prosody-224333805425866e33c721ec9f5435ec38ad0e0b.zip |
mod_pubsub: Add 'forbidden' error support
Diffstat (limited to 'plugins/mod_pubsub.lua')
-rw-r--r-- | plugins/mod_pubsub.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_pubsub.lua b/plugins/mod_pubsub.lua index dc1b1263..32c75c4d 100644 --- a/plugins/mod_pubsub.lua +++ b/plugins/mod_pubsub.lua @@ -29,6 +29,7 @@ local pubsub_errors = { ["invalid-jid"] = { "modify", "bad-request", nil, "invalid-jid" }; ["item-not-found"] = { "cancel", "item-not-found" }; ["not-subscribed"] = { "modify", "unexpected-request", nil, "not-subscribed" }; + ["forbidden"] = { "cancel", "forbidden" }; }; function pubsub_error_reply(stanza, error) local e = pubsub_errors[error]; |