Software /
code /
prosody
Changeset
5446:51686426cac2
Merge 0.9->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 08 Apr 2013 15:32:51 +0100 |
parents | 5444:30ab4e69a50d (current diff) 5445:9054b51e71a4 (diff) |
children | 5453:116971a751d3 |
files | |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pubsub.lua Mon Apr 08 15:05:16 2013 +0100 +++ b/plugins/mod_pubsub.lua Mon Apr 08 15:32:51 2013 +0100 @@ -22,7 +22,9 @@ 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);