diff options
author | Matthew Wild <mwild1@gmail.com> | 2013-04-08 15:32:51 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2013-04-08 15:32:51 +0100 |
commit | 308088b1faaf9a50df3432378e0bc4be52b35ab3 (patch) | |
tree | fc78ef5c157ed829188a235259e105fc4d72c748 | |
parent | e021bc18eb0399a5042ba63dc676093f0c9ec4a0 (diff) | |
parent | d7dbbc087154aa0dbf338dc7aea0f0ddd38c9e8a (diff) | |
download | prosody-308088b1faaf9a50df3432378e0bc4be52b35ab3.tar.gz prosody-308088b1faaf9a50df3432378e0bc4be52b35ab3.zip |
Merge 0.9->trunk
-rw-r--r-- | plugins/mod_pubsub.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_pubsub.lua b/plugins/mod_pubsub.lua index 8f078f54..7bd33102 100644 --- a/plugins/mod_pubsub.lua +++ b/plugins/mod_pubsub.lua @@ -22,7 +22,9 @@ function handle_pubsub_iq(event) local origin, stanza = event.origin, event.stanza; local pubsub = stanza.tags[1]; local action = pubsub.tags[1]; - if not action then return; end + if not action then + return origin.send(st.error_reply(stanza, "cancel", "bad-request")); + end local handler = handlers[stanza.attr.type.."_"..action.name]; if handler then handler(origin, stanza, action); |